// JavaScript Document
// Account type
function GetObj(id) {
return document.getElementById(id);
return (ns4) ? document.layers[id] : (ie4) ? document.all[id] : (ie5||ns5) ? document.getElementById(id) : null;
}
var FilterShowed=false;
var FilterMustShowed=false;
var DataOpShowed=false;
function ShowAccountType()
{
if (DataOpShowed) ShowDataOp();
var Obj1=GetObj("Filter1");
//var FLink=GetObj("FilterLink");
Obj1.style.display="";
//FLink.innerHTML="Yes";
/*document.frmCreatAccount.cbxWhAccountType.checked= true;
document.frmCreatAccount.cbxRtAccountType.checked = false;*/
FilterShowed=true;
}
/*function ShowAccountTypeCbx()
{
if (DataOpShowed) ShowDataOp();
var Obj1=GetObj("Filter1");
var FLink=GetObj("FilterLink");
Obj1.style.display="";
FilterShowed=true;
/*FLink.innerHTML="Yes";
document.frmCreatAccount.cbxWhAccountType.checked= true;*/
/*document.frmCreatAccount.cbxWhtAccountType.checked =!document.frmCreatAccount.cbxWhtAccountType.checked;
document.frmCreatAccount.cbxWhtAccountType.checked=!document.frmCreatAccount.cbxWhtAccountType.checked;
if(document.frmCreatAccount.cbxWhtAccountType.checked == false){
//document.frmCreatAccount.cbxRtAccountType.checked = false;
var Obj1=GetObj("Filter1");
var FLink=GetObj("FilterLink");
Obj1.style.display="none";
FilterShowed=false;
}
}*/
function HideAccountType()
{
var Obj1=GetObj("Filter1");
//var FLink=GetObj("FilterLink");
Obj1.style.display="none";
//FLink.innerHTML="Yes";
/*document.frmCreatAccount.cbxWhAccountType.checked= false;*/
FilterShowed=false;
}
function AccountType()
{
var Obj1=GetObj("Filter1");
//var FLink=GetObj("FilterLink");
Obj1.style.display="none";
//FLink.innerHTML="Yes";
/*document.frmCreatAccount.cbxWhAccountType.checked= false;*/
FilterShowed=false;
/*document.frmCreatAccount.cbxRtAccountType.checked= !document.frmCreatAccount.cbxRtAccountType.checked;*/
}
function setBillingInfo(isChecked)
{
with (window.document.frmCreatAccount) {
if (isChecked) {
/*txtShCompanyName.value = txtBlCompanyName.value;
txtUserShFirstName.value = txtUserBlFirstName.value;
txtUserShMIddlName.value = txtUserBlMIddlName.value;
txtUserShLastName.value = txtUserBlLastName.value;*/
txtUserShStreet.value = txtUserBlStreet.value ;
txtUserShCity.value = txtUserBlCity.value;
txtUserShState.value = txtUserBlState.value;
txtUserShZipCod.value = txtUserBlZipCod.value;
txtUserShCountry.value = txtUserBlCountry.value;
txtUserShPhone.value = txtUserBlPhone.value;
txtUserShFax.value = txtUserBlFax.value;
/*txtShCompanyName.readOnly = true;
txtUserShFirstName.readOnly = true;
txtUserShMIddlName.readOnly = true;
txtUserShLastName.readOnly = true;*/
txtUserShStreet.readOnly = true;
txtUserShCity.readOnly = true;
txtUserShState.readOnly = true;
txtUserShZipCod.readOnly = true;
txtUserShCountry.readOnly = true;
txtUserShPhone.readOnly = true;
txtUserShFax.readOnly = true;
} else {
/*txtShCompanyName.readOnly = false;
txtUserShFirstName.readOnly = false;
txtUserShMIddlName.readOnly = false;
txtUserShLastName.readOnly = false;*/
txtUserShStreet.readOnly = false;
txtUserShCity.readOnly = false;
txtUserShState.readOnly = false;
txtUserShZipCod.readOnly = false;
txtUserShCountry.readOnly = false;
txtUserShPhone.readOnly = false;
txtUserShFax.readOnly = false;
}
}
}
function setBilingInfoChecked(){
document.frmCreatAccount.cboSameInfo.checked= !document.frmCreatAccount.cboSameInfo.checked;
}