function deletevalue(url){
	k=confirm("Are You Sure To Delete This Record");
	if(k==true){
			document.location=url;
	}
}

  function chkchar(valtocheck,allowed)
  {
    var i;
	  for(i=0;i<valtocheck.length;i++)
	  {
		  var c=valtocheck.charAt(i);
		  if(allowed.indexOf(c)==-1)
		  return false;
	  }  
	  return true;
  } 
  
  function minval(val1,val2,msg1){
  	if(val1.length<=val2){
		alert(msg1);
		return false;	
	 }
	 return true;
  }
  
   function maxval(val1,val2,msg1){
  	if(val1.length>=val2){
		alert(msg1);
		return false;	
	 }
	 return true;
  }
  
  function revstr(str1){	
	var str2="";
	for(k=0;k<str1.length;k++){
		str2=str2+str1.substr(str1.length-1-k,1);
	}
	return str2
}

  function email(mail,msg){
		srt1=mail;
		srt2=mail;
		if(srt1.match("@")==null){
			alert(msg);
			return false;
		}
		if(srt2.indexOf(".")<=0){
				alert(msg);
				return false;
		}
		
		str2=revstr(srt1)
		str3=str2.substr(0,str2.indexOf("."));
		if(str3.length<2){
				alert(msg);
				return false;
		}
		 return true;
  
  }
function passmatch(pass1,pass2,msg){
	if(pass1.value!=pass2.value){
		alert(msg);
		pass2.focus();
		return false;
	}
	else
		return true;

}  

