
function copystatus(){
    window.status="Website Developed By AppNet Solutions.";
};


function limitext(TheForm,TheFld,Val,len,max)	{
	var maxlength = max;
	var currlength = len;	
	if(maxlength < currlength) {
		TheForm[TheFld].value = TheForm[TheFld].value.substring(0, maxlength);
		alert("Maximum Character Limit Met - " + maxlength);		
	}
	//alert(currlength);
};


function ValidateMe(theForm)
{		 
	if (theForm.newpw.value == "" || theForm.newpw.value.length < 6)	  {
	 alert("Password must be at least 6 characters.");
	 theForm.newpw.focus();
	 return (false);	  }
	 
	if (theForm.newpw.value != theForm.cnewpw.value)	  {
	 alert("New Password and Confirm Password do not match.");
	 theForm.newpw.focus();
	 return (false);	  } 
	 
	 
	if (theForm.oldpw.value == "")	  {
	 alert("Old Password is Required.");
	 theForm.oldpw.focus();
	 return (false);	  } 
      	
  return (true);
}


function userConfirm() { 
	return window.confirm ("Are you sure you want to delete this record?");
} 


function popup(url,name,h,w) {
  window.open(url, name, 'left=340,top=80,width=' + w + ',height=' + h + ',scrollbars,resizable');
}


function disableButton(theButton)
{
 theButton.value="Processing...";
 theButton.disabled = true; 
}

function userConfirmMsg(msg) { 
	var newmsg = msg
	return window.confirm(newmsg) 
} ;
