function initSu(strError)
{blnIsMicrosoft = (navigator.appName.indexOf("Microsoft") > -1) && !(navigator.userAgent.indexOf("Opera") > -1);registerMouseMove();if ((strError.length > 0) && (parseInt(strError) != 0)) addUser(strError);}function addUser()
{if (arguments.length == 0)
{if (validateForm())
{document.getElementById("btnConfirm").disabled = true;document.getElementById("status").innerHTML = "Registering user ...";strPost = "strUser="+document.getElementById("strUser").value +
"&c=cu";httpRequest("/app/home/signupprocess.php",strPost);}}else{if (arguments[0] != 0) document.getElementById("btnConfirm").disabled = false;switch(arguments[0])
{case 0:document.myform.strPack.value = document.getElementById("strPack_").options[document.getElementById("strPack_").selectedIndex].value;document.myform.strDur.value = document.getElementById("strDur_").options[document.getElementById("strDur_").selectedIndex].value;document.myform.submit();break;case 10:document.getElementById("status").innerHTML = txtSu_Js3;break;case 11:document.getElementById("status").innerHTML = txtSu_Js4;break;default:document.getElementById("status").innerHTML = txtSu_Js4;break;}}}function validateForm()
{blnResult = true;if (trim(document.getElementById("strConfirmPwd").value) != trim(document.getElementById("strPassword").value))
{document.getElementById("status").innerHTML = txtSu_Js0;document.getElementById("strPassword").focus();blnResult = false;}if (blnResult) blnResult = checkField(document.getElementById("strUser"),"strUser",document.getElementById("status"));if (blnResult) blnResult = checkField(document.getElementById("strPassword"),"strPassword",document.getElementById("status"));if (blnResult) blnResult = checkField(document.getElementById("strFirstName"),"strFirstName",document.getElementById("status"));if (blnResult) blnResult = checkField(document.getElementById("strLastName"),"strLastName",document.getElementById("status"));if (blnResult) blnResult = checkField(document.getElementById("strEmail"),"strEmail",document.getElementById("status"));if (blnResult)
{if (document.myform.strCountry.options[document.myform.strCountry.selectedIndex].value.length <= 0)
{document.getElementById("status").innerHTML = txtSu_Js1;blnResult = false;}}if (blnResult)
{if (document.getElementById("chkTerms").checked != true)
{blnResult = false;document.getElementById("status").innerHTML = txtSu_Js2;}}return blnResult;}