function confirmAction(formname,msg)
{
  if(msg=='' || void(msg)==undefined){
   msg='Confirm Delete?';
  }
  var result = confirm(msg);
  if(result){
    document.forms[formname].submit();
  }
}
function confirmDelete()
{
var agree=confirm("Are you sure you wish to Delete-----?");
if (agree)
	{
	return true;
	}
else
	{
	 return false;
	}
}
function validate(theform)
{
for (i = 0; i < theform.length; i++) 
	   {
	var tempobj = theform.elements[i];
		if (tempobj=="")
		alert("field can not be left blank");
		}

}