//This Function Checks for an empty textbox passed as thetextbox
//and gives an alert message passed as message if the textbox is empty
function isnull(thetextbox,message)
{
	if(thetextbox.value == "")
	{
		if (message!="")
		{
	 		window.alert(message);
	 		thetextbox.focus();		
		}
		return true;	
	}
	else
		return false;
}

//This Function checks for valid numberof characters within
//the checkbox which should be >=minlength and <=maxlength
function isvalidlength(thetextbox,minlength,maxlength,message)
{
	if(thetextbox.value.length < minlength)
	{
		alert(message);
		thetextbox.select();
	 	thetextbox.focus();
		return false;	
	}
	else
		return true;
	
	if(thetextbox.value.length > maxlength)
	{
		alert(message);
		thetextbox.select();
	 	thetextbox.focus();
		return false;	
	}
	else
		return true;
	
}

