   var num,obj;

// This function eliminates the Special characters
    function Urlcheck(num,obj)
	{

	    var count1=0;
	    var count=0;
	    var count2=0;
	    var i;
	    str = new String (escape(num));
	   if (str.match("%7E")|| str.match("%60") || str.match("%21") || str.match("%23") || str.match("%24") || str.match("%25") || str.match("%5E") || str.match("%26") || str.match("%28") || str.match("%29") || str.match("%7B") || str.match("%7D") || str.match("%5B") || str.match("%5D") || str.match("%3C") || str.match("%3E") || str.match("%3F") || str.match("%3A") || str.match("%3B")|| str.match("%22") || str.match("%27")|| str.match("%7C") || str.match("%5C")) 
	     {
	       alert("Enter only Alpha Numeric characters !!");
    	   obj.value="";
    	   obj.focus();
    	 }
	else {
          	
		
		for(i=0;i<str.length;i++){
		if(str.substring(i,i+1 )=="w") count=i;
		if(str.substring(i,i+1 )==".") count2=i;
                      
		}
		if (str.substring(3,obj.value )!="www" )
			{alert("Format:www.XYZ.com ");
			obj.value="";
			//obj.focus();
			}
           }
	   
     }
    

    // This function eliminates the Special characters
    function Txtcheck(num,obj)
	{
	    str = new String (escape(num));
	   if (str.match("%7E")|| str.match("%60") || str.match("%21") || str.match("%23") || str.match("%24") || str.match("%25") || str.match("%5E") || str.match("%26") || str.match("%28") || str.match("%29") || str.match("%7B") || str.match("%7D") || str.match("%5B") || str.match("%5D") || str.match("%3C") || str.match("%3E") || str.match("%3F") || str.match("%3A") || str.match("%3B")|| str.match("%22") || str.match("%27")|| str.match("%7C") || str.match("%5C")) 
	     {
	       alert("Enter only Alpha Numeric characters !!");
    	   obj.value="";
    	   obj.focus();
    	 }
	   
     }

  // This function eliminates the Special characters
    function Photocheck(num,obj)
	{   
	    str = new String (escape(num));
        	if ((str.substring(str.indexOf(".")+1)!="gif") && (str.substring(str.indexOf(".")+1)!="jpg")  && (str.substring(str.indexOf(".")+1)!="jpe") && (str.substring(str.indexOf(".")+1)!="GIF") && (str.substring(str.indexOf(".")+1)!="JPG")  && (str.substring(str.indexOf(".")+1)!="JPE")  )
			{alert("Got to select either .GIF or .JPEG files ");
			obj.value="";
			//obj.focus();
		}
     }
    