function profilecheck()
{
	 if(document.profile.email.value=="")
	 {
	 alert("\nPlease enter your email.");    
	  document.profile.email.focus();      
	  document.profile.email.select();      
	  return false;      
	 }
	   if(document.profile.email.value.indexOf ('@',0) == -1 || document.profile.email.value.indexOf ('.',0) == -1 || document.profile.email.value.length < 6)
	 {      
	  alert("\nThe email address you have entered is invalid.\n\nPlease re-enter a valid email address.");      		
	  document.profile.email.focus();      
	  document.profile.email.select();      
	  return false;      
	 } 
	  if(document.profile.firstname.value=="")
	 {
	 alert("\nPlease enter your name.");    
	  document.profile.firstname.focus();      
	  document.profile.firstname.select();      
	  return false;      
	 }
 
   if(document.profile.lastname.value=="")
	 {
	 alert("\nPlease enter your name.");    
	  document.profile.lastname.focus();      
	  document.profile.lastname.select();      
	  return false;      
	 }
	 if(document.profile.alias.value=="")
	 {
	 alert("\nPlease enter your alias name.");    
	  document.profile.alias.focus();      
	  document.profile.alias.select();      
	  return false;      
	 }
	 if(document.profile.address.value=="")
	 {
	 alert("\nPlease enter your address.");    
	  document.profile.address.focus();      
	  document.profile.address.select();      
	  return false;      
	 }
	 
	  if(document.profile.state.value=="")
	 {
	 alert("\nPlease enter your state.");    
	  document.profile.state.focus();      
	  document.profile.state.select();      
	  return false;      
	 }
	 if(document.profile.city.value=="")
	 {
	 alert("\nPlease enter your city.");    
	  document.profile.city.focus();      
	  document.profile.city.select();      
	  return false;      
	 }
	  if(document.profile.zipcode.value=="")
	 {
	 alert("\nPlease enter zipcode.");    
	  document.profile.zipcode.focus();      
	  document.profile.zipcode.select();      
	  return false;      
	 }
	  if(document.profile.pwd.value=="")
	 {
	 alert("\nPlease enter a password.");    
	  document.profile.pwd.focus();      
	  document.profile.pwd.select();      
	  return false;      
	 }
	 if(document.profile.repwd.value=="")
	 {
	 alert("\nPlease re-enter your password.");    
	  document.profile.repwd.focus();      
	  document.profile.repwd.select();      
	  return false;      
	 }
	
	  if (document.profile.pwd.value=="" || document.profile.pwd.value.indexOf ('@',0) != -1 || document.profile.pwd.value.indexOf ('.',0) != -1 || document.profile.pwd.value.indexOf ('!',0) != -1 || document.profile.pwd.value.indexOf ('%',0) != -1 || document.profile.pwd.value.indexOf ('#',0) != -1 || document.profile.pwd.value.indexOf ('*',0) != -1 || document.profile.pwd.value.indexOf ('/',0) != -1 )
		 {      
		  alert("\nThe password you have entered is invalid.\n\nPlease enter a pwd without special characters.");    
		  document.profile.pwd.focus();      
		  document.profile.pwd.select();      
		  return false;      
		 }  	

}
function selCountry(m)
{
var t = m;
var n = document.profile.country.length;
for(var i=0;i<n;i++){
if (document.profile.country.options[i].value==t)
 document.profile.country.options.selectedIndex = i;
  }
}