function checkPasses(one,two)

{

   var pass=document.getElementById(one).value;

   var pass2=document.getElementById(two).value;



   if(pass!=pass2)

   {

    alert ("Passwords dont match!");

   }

}



function checkMail(email)

{ 	

      if(email=="")

      {

          alert("Please, enter valid e-mail address.");

	 	  return false;

      }

      

      if(email.indexOf("@")<1||email.indexOf(".")<1)

      {

        	 alert("Please, enter valid e-mail address.");

	 		return false;

      }



      return true;

}



function confirmAction(frm)

{

   if(confirm("Are you sure?"))

   {

      frm.submit();

   }

   return true;

}



function centerWin(filename,width,height,name)

{

   var x=(screen.availWidth-width)/2;

   var y=(screen.availHeight-height)/2-50;



   if(name="") name='win'



   newWin=window.open(filename, name,"width=10,height=10, scrollbars=yes");

   newWin.moveTo(x,y);

   newWin.resizeTo(width,height);

}






