message=new Array();
//******************************************************************************************************
function resetForm() 
{
    document.forms[0].reset();
}
//******************************************************************************************************
function submitForm(f) 
{
 message.length=0;	
 if (checkForm(f)) 
   	{
     f.submit();
    }
}
//******************************************************************************************************
function checkSelect(selObj, fldName) 
{
	if (selObj.selectedIndex) 
		{
		 alert("You should select blank option before entering time in " + fldName + " field.");
		 return false;
		}
	return true;
}
//******************************************************************************************************
function checkInput(inpObj, selObj, fldName) 
{
	if (inpObj.value) 
		{
		 alert("You should delete all data in " + fldName + " field before selecting a word.");
		 selObj.selectedIndex = 0;
		}
}
//******************************************************************************************************
function disableSelect(name) 
{
 var which=document.forms[0].elements[name];
	if (which.disabled && which.disabled == true) 
		{
		 which.disabled = false;
		 which.style.background = '#ffffff';
		}
	else 
		{
		 which.style.background = '#d3d3d3';
		 which.disabled = true;
		}	
	return;	
}
//******************************************************************************************************
function readonlyFieldOnCheck(name,check) 
{
 var which=document.forms[0].elements[name];
	if (check.checked) 
		{
		 which.style.background = '#ffffff';	
		 which.readOnly = false;
		}
	else 
		{
		 which.readOnly = true;
		 which.style.background = '#d3d3d3';			

		}	
	return;	
}