function validateForm(){var ret="true";if(document.getElementById('FirstName').value==""){document.getElementById('errorFirstName').style.display="inline";ret="false";}
else{document.getElementById('errorFirstName').style.display="none";}
if(document.getElementById('LastName').value==""){document.getElementById('errorLastName').style.display="inline";ret="false";}
else{document.getElementById('errorLastName').style.display="none";}
if(document.getElementById('UserName').value==""){document.getElementById('errorUserName').style.display="inline";ret="false";}
else{document.getElementById('errorUserName').style.display="none";}
if(document.getElementById('Password').value==""){document.getElementById('errorPassword').style.display="inline";ret="false";}
else{document.getElementById('errorPassword').style.display="none";document.getElementById('errorReenterPassword').style.display="none";}
if(document.getElementById('ConfirmPassword').value==""){document.getElementById('errorConfirmPassword').style.display="inline";ret="false";}
else{document.getElementById('errorConfirmPassword').style.display="none";document.getElementById('errorReenterPassword').style.display="none";}
if(document.getElementById('Password').value!=document.getElementById('ConfirmPassword').value){document.getElementById('errorPassworddontMatch').style.display="inline";ret="false";}
else{document.getElementById('errorPassworddontMatch').style.display="none";}
if(document.getElementById('EmailId').value==""){document.getElementById('errorEmailId').style.display="inline";ret="false";}
else{document.getElementById('errorEmailId').style.display="none";}
if((document.getElementById('EmailId').value).indexOf("@")=="-1"){document.getElementById('errorEmailId').style.display="inline";ret="false";}
else{document.getElementById('errorEmailId').style.display="none";}
if(document.getElementById('Location').value=="Select"){document.getElementById('errorLocation').style.display="inline";ret="false";}
else{document.getElementById('errorLocation').style.display="none";}
if(document.getElementById('WordVerification').value==""){document.getElementById('errorWordVerification').style.display="inline";ret="false";}
else{document.getElementById('errorWordVerification').style.display="none";}
if(ret=="true"){return true;}
else{return false;}}
function ca(username){if(username==""){alert('Kindly enter a User Name');return false;}
var xmlhttpx=false;var url="http://altertunes.com/library/ca.php?username="+username;try{xmlhttpx=new ActiveXObject("Msxml2.XMLHTTP");}
catch(e){try{xmlhttpx=new ActiveXObject("Microsoft.XMLHTTP");}
catch(oc){xmlhttpx=null;}}
if(!xmlhttpx&&typeof XMLHttpRequest!="undefined"){xmlhttpx=new XMLHttpRequest();}
if(!xmlhttpx){alert('Giving up, Cannot create an XMLHTTP instance');return false;}
xmlhttpx.onreadystatechange=function(){if(xmlhttpx.readyState!=4){document.getElementById('checking').style.display='inline';}
if((xmlhttpx.readyState==4)&&(xmlhttpx.status==200)){document.getElementById('checking').style.display='none';if(xmlhttpx.responseText=="true"){document.getElementById('notavailable').style.display="none";document.getElementById('available').style.display="inline";}
else if(xmlhttpx.responseText=="false"){document.getElementById('available').style.display="none";document.getElementById('notavailable').style.display="inline";}}}
xmlhttpx.open('GET',url,true);xmlhttpx.send(null);}