/*
 * @Copyright@
 * @6.9@
 */
function textenabled(obj){
	if(obj.value=="#"){
		document.registrationForm.other.value="true";
		document.registrationForm.action=webroot+"/reg/registration.do";
		document.registrationForm.submit();
		}
		else{
		document.registrationForm.other.value="false";
		document.registrationForm.action=webroot+"/reg/registration.do";
		document.registrationForm.submit();
		
		}
		
}
function headerRegisteration(){
	document.registrationForm.action=webroot+"/reg/registration.do?ishead=head";
	document.registrationForm.submit();
}
function popupOrgWindow(str) {
	var pdfwindow;
   var optIE='menubar=no,scrollbars=yes,width=1020,height=700,left='+PositionX+',top='+PositionY;
 	if(flag1 == 0){
		pdfwindow = window.open(str,"PrinterView",optIE);
		flag1=1;
	}else{
		pdfwindow.close();
		pdfwindow = window.open(str,"PrinterView",optIE);
		pdfwindow.focus();
	}
  }
function termcheck(obj){
}

function cancel_updfunc(){
	document.registrationForm.action=webroot+"/reg/regUpdateCancel.do";
	document.registrationForm.submit();
}
function doLoginPage(id){
	document.forms[2].loginId.value = id;
	documemt.forms[2].nosCount.value = 0;
	document.forms[2].action=webroot+"/reg/reglogin.do";
	document.forms[2].submit();
}

function doRegLoginSubmit(count){
	var jcount = count + 1;
	document.forms[1].nosCount.value = jcount;
	document.forms[1].action=webroot+"/reg/regloginSubmit.do?id="+tableId;
	document.forms[1].submit();
}

function doEnterRegLoginSubmit(count,event){
if(event.keyCode == 13){
	var jcount = count + 1;
	document.forms[1].nosCount.value = jcount;
	document.forms[1].action=webroot+"/reg/regloginSubmit.do?id="+tableId;
	document.forms[1].submit();
} else{
 return true;
}
}
function doRegPinSubmit(){
	document.forms[1].action=webroot+"/reg/regloginPinSubmit.do";
	document.forms[1].submit();
}

function doRegPinReset(){
	document.forms[1].pinNumber.value = "";
	document.forms[1].action=webroot+"/reg/regloginPinReset.do";
	document.forms[1].submit();
}

function doRegLoginReset(){
    document.forms[1].nosCount.value = 0;
	document.forms[1].userEmail.value="";
	document.forms[1].userPassword.value="";
    document.forms[1].action=webroot+"/reg/regloginReset.do";
	document.forms[1].submit();
}


function doRegPassSubmit(){
	document.forms[2].nosCount.value = 0;
    document.forms[2].action=webroot+"/reg/regpassSubmit.do";
	document.forms[2].submit();
}

function doRegPassCancel(){
	document.forms[2].nosCount.value = 0;
    document.forms[2].action=webroot+"/reg/regpassCancel.do";
	document.forms[2].submit();
}

<!-- USER REGISTRATION JAVA SCRIPT FUNCTION -->
<!-- NEW REGISTRATION SUBMIT -->
function submit_func(){
	
	document.registrationForm.action=webroot+"/reg/regSubmit.do";
	document.registrationForm.submit();
	
}
<!-- NEW REGISTRATION CANCEL -->
function cancel_func(){
	document.registrationForm.action=webroot+"/reg/regCancel.do";
	document.registrationForm.submit();
}
<!-- NEW REGISTRATION RESET -->
function reset_func(){
	document.registrationForm.action=webroot+"/reg/registration.do";
	document.registrationForm.submit();
}
<!-- REGISTRATION UPDATE SUBMIT -->
function submitupd_func(){
	document.registrationForm.action=webroot+"/reg/regupdSubmit.do";
	document.registrationForm.submit();
}
<!-- REGISTRATION UPDATE CANCEL -->
function cancelupd_func(){
	document.registrationForm.action=webroot+"/reg/regCancel.do";
	document.registrationForm.submit();
}
<!-- REGISTRATION UPDATE RESET -->
function resetupd_func(){
	document.registrationForm.action=webroot+"/reg/update.do";
	document.registrationForm.submit();
}
<!-- OCCUPATION CHANGE -->
function doOtherOccuChange(){
		document.registrationForm.other.value="occupation";
		document.registrationForm.action=webroot+"/reg/onRegOthers.do";
		document.registrationForm.submit();
}
<!-- COUNTRY CHANGE -->
function doOtherCounChange(){
		document.registrationForm.other.value="country";
		document.registrationForm.action=webroot+"/reg/onRegOthers.do#coun";
		document.registrationForm.submit();	
}
function selectOption(Obj) {

	var selValue = Obj.value;
	if(selValue.indexOf("*")>0) {
		Obj.value = selValue.substring(0,selValue.indexOf("*")) ;
	}

}
	var printwindow;
	var PositionX = 0;
  	var PositionY = 0;
  	var flag1 =0;
  function popWindowTerms(path)
  {  
  	var optIE='menubar=yes,scrollbars=yes,width=500,height=450,left='+PositionX+',top='+PositionY;
  	
  	if(flag1 == 0){
	  	printwindow = window.open(path,"TermsOfUse",optIE);
	  	flag1 = 1;
	}else{
		printwindow.close();
		printwindow = window.open(path,"TermsOfUse",optIE);
		printwindow.focus();
	}
  }
  
function showcart(id){
	if(document.forms[2] != null){
		document.forms[2].action = webroot+"/toc/showppvshopcart.do?id="+id;
		document.forms[2].submit();
	} else if(document.forms[1] != null){
		document.forms[1].action = webroot+"/toc/showppvshopcart.do?id="+id;
		document.forms[1].submit();
	}else{
		document.oHSUSSitMapForm.action = webroot+"/toc/showppvshopcart.do?id="+id;
		document.oHSUSSitMapForm.submit();
	}
	
}
   
 function doReLoginCancel(){
 document.forms[1].action=webroot+"/reg/relogCancel.do";
 return true;
		//document.forms[1].submit();
 }
function doReLoginCont(){
document.forms[1].action=webroot+"/reg/reloginCont.do";
return true;
		//document.forms[1].submit();
}

function getOrgStates(){
	document.oHSUSOrgRegForm.action=webroot+"/reg/orgregloadStates.do";
	document.oHSUSOrgRegForm.submit();
}
function doOrgCancelTrial(){
	document.oHSUSOrgRegForm.action=webroot+"/reg/cancelorgreg.do"
	document.oHSUSOrgRegForm.submit();
}
function disableOrgTxtArea(){
	document.oHSUSOrgRegForm.ipList.value = "";
	document.oHSUSOrgRegForm.ipList.disabled = true;
}
function enableOrgTxtArea(){
	document.oHSUSOrgRegForm.ipList.disabled = false;
}
function doOrgResetTrial(){
	document.oHSUSOrgRegForm.action=webroot+"/reg/resetorgreg.do"
	document.oHSUSOrgRegForm.submit();
}
function doOrgSubmitTrial(){
document.oHSUSOrgRegForm.action=webroot+"/reg/submitorgreg.do"
	document.oHSUSOrgRegForm.submit();
}
function reset_remotefunc(){
document.registrationForm.action=webroot+"/reg/remoteregReset.do?reset=reset";
	document.registrationForm.submit();
}

function addToCart(docid) {
    document.oHSUSAccessDeniedForm.action=webroot+"/toc/showppvshopcart.do?id="+docid;
    document.oHSUSAccessDeniedForm.submit();
}