function getPanelPage_domainLogin(PageDiv,file,Param,Loader)
{document.getElementById(PageDiv).innerHTML='<center><img src="'+Loader+'" ></center>';var xmlhttp=false;try
{xmlhttp=new ActiveXObject('Msxml2.XMLHTTP');}
catch(e)
{try
{xmlhttp=new
ActiveXObject('Microsoft.XMLHTTP');}
catch(E)
{xmlhttp=false;}}
if(!xmlhttp&&typeof XMLHttpRequest!='undefined')
{xmlhttp=new XMLHttpRequest();}
var oFile=file;file=file+'.php'+Param;xmlhttp.open('GET',file,true);xmlhttp.onreadystatechange=function()
{if(xmlhttp.readyState==4)
{var content=xmlhttp.responseText;if(content)
{tmpContent=content;if(tmpContent.indexOf('^^^^')!=-1)
{var rtValues=tmpContent.split('^^^^');var ifError=rtValues[0];var cError=ifError.split('#^^--^^#');if(cError[1]=='1')
{var cErrorStr=rtValues[1].split('#^^--^^#');var ErrorString=cErrorStr[1];document.getElementById('ErrorDiv').innerHTML='<font color="FF0000">'+ErrorString+'</font>';document.getElementById('allsmallDvis').innerHTML="";}
else if(cError[1]=='0')
{var xData="";for(i=1;i<7;i++)
{xData=rtValues[i];var vData=xData.split('#^^--^^#');document.getElementById(vData[0]).innerHTML=vData[1];}
document.getElementById('dummy').innerHTML="";}}}}}
xmlhttp.send(null)
return;}
function getPanelPage(PageDiv,file,Param,Loader)
{document.getElementById(PageDiv).innerHTML='<center><img src="'+Loader+'" ></center>';var xmlhttp=false;try
{xmlhttp=new ActiveXObject('Msxml2.XMLHTTP');}
catch(e)
{try
{xmlhttp=new
ActiveXObject('Microsoft.XMLHTTP');}
catch(E)
{xmlhttp=false;}}
if(!xmlhttp&&typeof XMLHttpRequest!='undefined')
{xmlhttp=new XMLHttpRequest();}
var oFile=file;file=file+'.php'+Param;xmlhttp.open('GET',file,true);xmlhttp.onreadystatechange=function()
{if(xmlhttp.readyState==4)
{var content=xmlhttp.responseText;if(content)
{if(oFile=='autocharge')
{document.FrmdoThis.action='https://www.freezone.co.uk/panel/autoManager.php';}
else if(oFile=='paymentSummry')
{document.FrmdoThis.action='https://www.freezone.co.uk/panel/paymentProcessor.php';}
else
{document.FrmdoThis.action='https://www.freezone.co.uk/panel/doThisProcess.php';}
document.getElementById(PageDiv).innerHTML=content;}}}
xmlhttp.send(null)
return;}
function getPanelPageLoad(PageDiv,file,Param,Loader)
{PageDiv.innerHTML='<center><h3>Loading </h3><img src="'+Loader+'" ></center>';var xmlhttp=false;try
{xmlhttp=new ActiveXObject('Msxml2.XMLHTTP');}
catch(e)
{try
{xmlhttp=new
ActiveXObject('Microsoft.XMLHTTP');}
catch(E)
{xmlhttp=false;}}
if(!xmlhttp&&typeof XMLHttpRequest!='undefined')
{xmlhttp=new XMLHttpRequest();}
file=file+'.php'+Param;xmlhttp.open('GET',file,true);xmlhttp.onreadystatechange=function()
{if(xmlhttp.readyState==4)
{var content=xmlhttp.responseText;if(content)
{PageDiv.innerHTML=content;}}}
xmlhttp.send(null)
return;}
function getPage(PageDiv,file,Param,Loader)
{document.getElementById(PageDiv).innerHTML='<center><h3>Loading </h3><img src="'+Loader+'" ></center>';var xmlhttp=false;try
{xmlhttp=new ActiveXObject('Msxml2.XMLHTTP');}
catch(e)
{try
{xmlhttp=new
ActiveXObject('Microsoft.XMLHTTP');}
catch(E)
{xmlhttp=false;}}
if(!xmlhttp&&typeof XMLHttpRequest!='undefined')
{xmlhttp=new XMLHttpRequest();}
file=file+'.php?domain=';xmlhttp.open('GET',file+Param,true);xmlhttp.onreadystatechange=function()
{if(xmlhttp.readyState==4)
{var content=xmlhttp.responseText;if(content)
{document.getElementById(PageDiv).innerHTML=content;}}}
xmlhttp.send(null)
return;}
function ShowDomanSearch(PageDiv,file,Param,Loader)
{document.getElementById(PageDiv).innerHTML='<center><h3>Loading </h3><img src="'+Loader+'" ></center>';var xmlhttp=false;try
{xmlhttp=new ActiveXObject('Msxml2.XMLHTTP');}
catch(e)
{try
{xmlhttp=new
ActiveXObject('Microsoft.XMLHTTP');}
catch(E)
{xmlhttp=false;}}
if(!xmlhttp&&typeof XMLHttpRequest!='undefined')
{xmlhttp=new XMLHttpRequest();}
file=file+'.php?Param=';xmlhttp.open('GET',file+Param,true);xmlhttp.onreadystatechange=function()
{if(xmlhttp.readyState==4)
{var content=xmlhttp.responseText;if(content)
{document.getElementById(PageDiv).innerHTML=content;}}}
xmlhttp.send(null)
return;}
function getAdslPage(PageDiv,file,Param,Loader)
{document.getElementById(PageDiv).innerHTML='<center><h3>Loading </h3><img src="'+Loader+'" ></center>';var xmlhttp=false;try
{xmlhttp=new ActiveXObject('Msxml2.XMLHTTP');}
catch(e)
{try
{xmlhttp=new
ActiveXObject('Microsoft.XMLHTTP');}
catch(E)
{xmlhttp=false;}}
if(!xmlhttp&&typeof XMLHttpRequest!='undefined')
{xmlhttp=new XMLHttpRequest();}
file=file+'.php?Phone=';xmlhttp.open('GET',file+Param,true);xmlhttp.onreadystatechange=function()
{if(xmlhttp.readyState==4)
{var content=xmlhttp.responseText;if(content)
{document.getElementById(PageDiv).innerHTML=content;}}}
xmlhttp.send(null)
return;}
function getAdslStep2(PageDiv,file,Param,Loader)
{document.getElementById(PageDiv).innerHTML='<center><h3>Loading </h3><img src="'+Loader+'" ></center>';var xmlhttp=false;try
{xmlhttp=new ActiveXObject('Msxml2.XMLHTTP');}
catch(e)
{try
{xmlhttp=new
ActiveXObject('Microsoft.XMLHTTP');}
catch(E)
{xmlhttp=false;}}
if(!xmlhttp&&typeof XMLHttpRequest!='undefined')
{xmlhttp=new XMLHttpRequest();}
file=file+'.php?pid=';xmlhttp.open('GET',file+Param,true);xmlhttp.onreadystatechange=function()
{if(xmlhttp.readyState==4)
{var content=xmlhttp.responseText;if(content)
{document.getElementById(PageDiv).innerHTML=content;}}}
xmlhttp.send(null)
return;}
function getSeoPage(PageDiv,file,Param,Loader)
{document.getElementById(PageDiv).innerHTML='<center><h3>Loading </h3><img src="'+Loader+'" ></center>';var xmlhttp=false;try
{xmlhttp=new ActiveXObject('Msxml2.XMLHTTP');}
catch(e)
{try
{xmlhttp=new
ActiveXObject('Microsoft.XMLHTTP');}
catch(E)
{xmlhttp=false;}}
if(!xmlhttp&&typeof XMLHttpRequest!='undefined')
{xmlhttp=new XMLHttpRequest();}
file=file+'.php?Param=';xmlhttp.open('GET',file+Param,true);xmlhttp.onreadystatechange=function()
{if(xmlhttp.readyState==4)
{var content=xmlhttp.responseText;if(content)
{document.getElementById(PageDiv).innerHTML=content;}}}
xmlhttp.send(null)
return;}
function getDetails(NameDiv,PriceDiv,TotalDiv,file,Param)
{var xmlhttp=false;try
{xmlhttp=new ActiveXObject('Msxml2.XMLHTTP');}
catch(e)
{try
{xmlhttp=new
ActiveXObject('Microsoft.XMLHTTP');}
catch(E)
{xmlhttp=false;}}
if(!xmlhttp&&typeof XMLHttpRequest!='undefined')
{xmlhttp=new XMLHttpRequest();}
file=file+'.php?Param=';xmlhttp.open('GET',file+Param,true);xmlhttp.onreadystatechange=function()
{if(xmlhttp.readyState==4)
{var content=xmlhttp.responseText;if(content)
{Newcontent=content;temp=Newcontent.split('^');var pName=temp[0];var pPrice=temp[1]+" / "+temp[2];document.getElementById(NameDiv).innerHTML=pName;document.getElementById(PriceDiv).innerHTML=pPrice;document.getElementById(TotalDiv).innerHTML=temp[3];document.getElementById("backupid").value=Param;}}}
xmlhttp.send(null)
return;}
function getOptionsDetails(TotalDiv,file,Param)
{if(Param=="backupid")
{Param=document.getElementById(Param).value;}
var xmlhttp=false;try
{xmlhttp=new ActiveXObject('Msxml2.XMLHTTP');}
catch(e)
{try
{xmlhttp=new
ActiveXObject('Microsoft.XMLHTTP');}
catch(E)
{xmlhttp=false;}}
if(!xmlhttp&&typeof XMLHttpRequest!='undefined')
{xmlhttp=new XMLHttpRequest();}
file=file+'.php?Param=';xmlhttp.open('GET',file+Param,true);xmlhttp.onreadystatechange=function()
{if(xmlhttp.readyState==4)
{var content=xmlhttp.responseText;if(content)
{document.getElementById(TotalDiv).innerHTML=content;}}}
xmlhttp.send(null)
return;}
function SelectPack(domain,imagePath,tfr)
{var frmObject=document.frmStep3;var ParamList=domain;for(var i=0;i<frmObject.elements.length;i++)
{var e=frmObject.elements[i];if(e.type=='radio')
{if(e.checked==true)
{if(e.name=='regLength')
{TmpPname=e.value;temp=TmpPname.split("_");var tmpPeriod=temp[1];switch(tmpPeriod)
{case'q':tmpPeriod="y1";break;case'y2':case'y5':case'y10':tmpPeriod="y2";TmpPname="domReg";break;}
var pName=temp[0]+"_"+tmpPeriod+".jpg";}
else if(e.name=='HostingType')
{TmpPname=e.value;temp=TmpPname.split("_");var tmpPeriod=temp[1];switch(tmpPeriod)
{case'q':case'y2':case'y3':tmpPeriod="y1";break;}
var pName=temp[0]+"_"+tmpPeriod+".jpg";}
if(e.value!='0')
{ParamList=ParamList+"&"+e.name+"="+e.value;}}}}
nParam=domain+"&type="+TmpPname+"&tfr="+tfr;document.getElementById(domain).innerHTML='<img src="'+imagePath+pName+'" onClick=\'getPage(\"step2\",\"step3\",\"'+nParam+'\",\"'+imagePath+'loader-2.gif\"); return false; \' >';document.getElementById('step2').innerHTML='';getPage(domain+"DETAILS",'setPackage',ParamList,imagePath+'loader-2.gif');ChkBox='check'+domain;document.getElementById(ChkBox).value=domain;document.getElementById(ChkBox).checked=true;show_cart_btn();hide_choose_opt();}
function hide_choose_opt()
{if(document.getElementById('choose_opt').style.display=='block')
{document.getElementById('choose_opt').style.display='none';}
else
{document.getElementById('choose_opt').style.display='none';}}
function show_cart_btn()
{if(document.getElementById('add_to_cart_btn').style.display=='none')
{document.getElementById('add_to_cart_btn').style.display='block';}
else
{document.getElementById('add_to_cart_btn').style.display='block';}}
function CheckForm(frmObject)
{var StrChecks='';var found=0;var ZeroValue=0;for(var i=0;i<frmObject.elements.length;i++)
{var e=frmObject.elements[i];if(e.type=='checkbox')
{if(e.checked==true)
{if(e.value=="")
{ZeroValue=1;}
StrChecks=StrChecks+e.name+",";found=1;}}}
if(found&&!ZeroValue)
{frmObject.AllChecks.value=StrChecks;return true;}
else if(ZeroValue)
{alert("For one or more selected Domain(s), package is not selected");return false;}
else
{alert("please select at least one...");return false;}}
function RemoveWhois(Row,TableName)
{ObjName='DelRow_'+TableName+'_'+Row;txtItem=document.getElementById(ObjName);realRow=txtItem.value;var tbl=document.getElementById(TableName);tbl.deleteRow(realRow);var frmObject=document.frmWhois;RowId=1;for(var i=0;i<frmObject.elements.length;i++)
{var e=frmObject.elements[i];if(e.type=='hidden')
{var ObjName=e.name;subindex=ObjName.indexOf('DelRow_'+TableName+'_');if(subindex!=-1)
{e.value=RowId;RowId++;}}}
document.getElementById('step2').innerHTML='';return false;}
function MM_preLoadImages(){var d=document;if(d.images){if(!d.MM_p)d.MM_p=new Array();var i,j=d.MM_p.length,a=MM_preLoadImages.arguments;for(i=0;i<a.length;i++)
if(a[i].indexOf("#")!=0){d.MM_p[j]=new Image;d.MM_p[j++].src=a[i];}}}
function LoadImages(ImgDiv,ImageName)
{document.getElementById(ImgDiv).innerHTML='<img src="'+ImageName+'" >';}
function test(msg)
{alert(msg);}
function verifyAccontsLogin(PageDiv,file,Param,FormObject,Loader)
{document.getElementById(PageDiv).innerHTML='<center>Verifying... <img src="'+Loader+'" ></center>';var xmlhttp=false;try
{xmlhttp=new ActiveXObject('Msxml2.XMLHTTP');}
catch(e)
{try
{xmlhttp=new
ActiveXObject('Microsoft.XMLHTTP');}
catch(E)
{xmlhttp=false;}}
if(!xmlhttp&&typeof XMLHttpRequest!='undefined')
{xmlhttp=new XMLHttpRequest();}
file=file+'.php';xmlhttp.open('GET',file+Param,true);xmlhttp.onreadystatechange=function()
{if(xmlhttp.readyState==4)
{var content=xmlhttp.responseText;if(content)
{if(content=='1')
{document.getElementById(PageDiv).innerHTML='<center>Verified, please wait... <img src="'+Loader+'" ></center>';FormObject.submit();}
else
{document.getElementById(PageDiv).innerHTML="<font color='#FF0000'>Invalid user name and password combination</font>";}}}}
xmlhttp.send(null)
return;}
function verifyMailLogin(PageDiv,file,Param,Loader)
{document.getElementById(PageDiv).innerHTML='<center><h3>Verifying... </h3><img src="'+Loader+'" ></center>';var xmlhttp=false;try
{xmlhttp=new ActiveXObject('Msxml2.XMLHTTP');}
catch(e)
{try
{xmlhttp=new
ActiveXObject('Microsoft.XMLHTTP');}
catch(E)
{xmlhttp=false;}}
if(!xmlhttp&&typeof XMLHttpRequest!='undefined')
{xmlhttp=new XMLHttpRequest();}
file=file+'.php';xmlhttp.open('GET',file+Param,true);xmlhttp.onreadystatechange=function()
{if(xmlhttp.readyState==4)
{var content=xmlhttp.responseText;if(content)
{if(content=="0")
{document.getElementById(PageDiv).innerHTML="<font color=#FF0000>Invalid Username and Password Combination</font>";}
else
{tmpContent=content;if(tmpContent.indexOf('^^^^')!=-1)
{var rtValues=tmpContent.split('^^^^');var FrmObject=rtValues[0];var USER=rtValues[1];if(FrmObject=='Frmwebmail')
{document.Frmwebmail.login_username.value=USER;document.getElementById(PageDiv).innerHTML='<center><h4>Verified, please wait... logging you in... </h4><img src="'+Loader+'" ></center>';document.Frmwebmail.submit();}
else if(FrmObject=='Frmplesk')
{var DOMAIN_PART=rtValues[2];var checkwebMail=rtValues[3];if(checkwebMail=='webmail')
{document.FrmEnsim.login_username.value=USER;document.FrmEnsim.action='http://'+DOMAIN_PART+'/webmail/src/redirect.php';document.getElementById(PageDiv).innerHTML='<center><h4>Verified, please wait... logging you in... </h4><img src="'+Loader+'" ></center>';document.FrmEnsim.submit();}
else if(checkwebMail=='mewebmail')
{document.saturn_15.userID.value=USER;document.saturn_15.action='http://webmail.'+DOMAIN_PART+'/mewebmail/default/lang/EN/Forms/login.aspx';document.getElementById(PageDiv).innerHTML='<center><h4>Verified, please wait... logging you in... </h4><img src="'+Loader+'" ></center>';document.saturn_15.submit();}
else
{document.Frmplesk.imapuser.value=USER;document.Frmplesk.maildomain.value=DOMAIN_PART;document.Frmplesk.realm.value=DOMAIN_PART;document.Frmplesk.action='http://webmail.'+DOMAIN_PART+'/horde/imp/redirect.php';document.getElementById(PageDiv).innerHTML='<center><h4>Verified, please wait... logging you in... </h4><img src="'+Loader+'" ></center>';document.Frmplesk.submit();}}
else if(FrmObject=='FrmCarnation')
{var DOMAIN_PART=rtValues[2];document.FrmCarnation.UserID.value=USER;document.FrmCarnation.action='http://'+DOMAIN_PART+'/mewebmail/base/default/lang/EN/login.asp';document.getElementById(PageDiv).innerHTML='<center><h4>Verified, please wait... logging you in... </h4><img src="'+Loader+'" ></center>';document.FrmCarnation.submit();}
else if(FrmObject=='FrmEnsim')
{var DOMAIN_PART=rtValues[2];document.FrmEnsim.login_username.value=USER;document.FrmEnsim.action='http://'+DOMAIN_PART+'/webmail/src/redirect.php';document.getElementById(PageDiv).innerHTML='<center><h4>Verified, please wait... logging you in... </h4><img src="'+Loader+'" ></center>';document.FrmEnsim.submit();}}
else
{document.getElementById(PageDiv).innerHTML="<font color=#FF0000>Invalid Username and Password Combination...</font>";}}}}}
xmlhttp.send(null)
return;}
function verifyCPLogin(PageDiv,file,Param,Loader)
{document.getElementById(PageDiv).innerHTML='<center><h3>Verifying... </h3><img src="'+Loader+'" ></center>';var xmlhttp=false;try
{xmlhttp=new ActiveXObject('Msxml2.XMLHTTP');}
catch(e)
{try
{xmlhttp=new
ActiveXObject('Microsoft.XMLHTTP');}
catch(E)
{xmlhttp=false;}}
if(!xmlhttp&&typeof XMLHttpRequest!='undefined')
{xmlhttp=new XMLHttpRequest();}
file=file+'.php';xmlhttp.open('GET',file+Param,true);xmlhttp.onreadystatechange=function()
{if(xmlhttp.readyState==4)
{var content=xmlhttp.responseText;if(content)
{if(content=="0")
{document.getElementById(PageDiv).innerHTML="<font color=#FF0000>Invalid Username and Password Combination</font>";}
else
{tmpContent=content;if(tmpContent.indexOf('^^^^')!=-1)
{var rtValues=tmpContent.split('^^^^');var FrmObject=rtValues[0];var DOMAIN=rtValues[1];if(FrmObject=='frmPleskCP')
{var SERVER=rtValues[2];document.frmPleskCP.action='https://'+SERVER+':8443/login_up.php3';document.getElementById(PageDiv).innerHTML='<center><h4>Verified, please wait... logging you in... </h4><img src="'+Loader+'" ></center>';document.frmPleskCP.submit();}
else if(FrmObject=='frmEnsimCP')
{var USER=rtValues[2];document.frmEnsimCP.action='https://'+DOMAIN+':19638/webhost/services/virtualhosting/siteadmin/';document.frmEnsimCP.ocw_login_username.value=USER;document.frmEnsimCP.ocw_login_domain.value=DOMAIN;document.getElementById(PageDiv).innerHTML='<center><h4>Verified, please wait... logging you in... </h4><img src="'+Loader+'" ></center>';document.frmEnsimCP.submit();}
else if(FrmObject=='frmCarnationCP')
{var USER=rtValues[2];document.frmCarnationCP.action='https://'+DOMAIN+':19638/webhost/services/winvirtualhosting/siteadmin';document.frmCarnationCP.ocw_login_username.value=USER;document.getElementById(PageDiv).innerHTML='<center><h4>Verified, please wait... logging you in... </h4><img src="'+Loader+'" ></center>';document.frmCarnationCP.submit();}
else if(FrmObject=='frmFzCP')
{document.frmFzCP.action=DOMAIN;document.getElementById(PageDiv).innerHTML='<center><h4>Verified, please wait... logging you in... </h4><img src="'+Loader+'" ></center>';document.frmFzCP.submit();}
else
{document.getElementById(PageDiv).innerHTML=tmpContent;}}
else
{document.getElementById(PageDiv).innerHTML="<font color=#FF0000>Invalid Username and Password Combination</font>";}}}}}
xmlhttp.send(null)
return;}
function verifyDnsLogin(PageDiv,file,Param,Loader)
{document.getElementById(PageDiv).innerHTML='<center><h3>Verifying... </h3><img src="'+Loader+'" ></center>';var xmlhttp=false;try
{xmlhttp=new ActiveXObject('Msxml2.XMLHTTP');}
catch(e)
{try
{xmlhttp=new
ActiveXObject('Microsoft.XMLHTTP');}
catch(E)
{xmlhttp=false;}}
if(!xmlhttp&&typeof XMLHttpRequest!='undefined')
{xmlhttp=new XMLHttpRequest();}
file=file+'.php';xmlhttp.open('GET',file+Param,true);xmlhttp.onreadystatechange=function()
{if(xmlhttp.readyState==4)
{var content=xmlhttp.responseText;if(content)
{if(content=="0")
{document.getElementById(PageDiv).innerHTML="<font color=#FF0000>Invalid Username and Password Combination</font>";}
else
{document.getElementById(PageDiv).innerHTML='<center><h4>Verified, please wait... logging you in... </h4><img src="'+Loader+'" ></center>';document.cpDNS.submit();}}}}
xmlhttp.send(null)
return;}
function ValidateDomainName(Form)
{domain=Form.domain_name;if(domain.indexOf(".")!=-1)
{alert('Invalid Domain name'+domain);return false;}
else
{return true;}}
function getSEODetailsNew(pack_id,PriceDiv,TotalDiv,file,Param)
{var xmlhttp=false;try
{xmlhttp=new ActiveXObject('Msxml2.XMLHTTP');}
catch(e)
{try
{xmlhttp=new
ActiveXObject('Microsoft.XMLHTTP');}
catch(E)
{xmlhttp=false;}}
if(!xmlhttp&&typeof XMLHttpRequest!='undefined')
{xmlhttp=new XMLHttpRequest();}
file=file+'.php?Param=';xmlhttp.open('GET',file+Param,true);xmlhttp.onreadystatechange=function()
{if(xmlhttp.readyState==4)
{var content=xmlhttp.responseText;if(content)
{Newcontent=content;temp=Newcontent.split('^');var pName=temp[0];var pPrice=temp[1];document.getElementById(pack_id).value=Param;document.getElementById(PriceDiv).innerHTML=pPrice;document.getElementById(TotalDiv).innerHTML=temp[2];}}}
xmlhttp.send(null)
return;}
function GetWhois(PageDiv,id,tfr,Loader)
{var domain_name=document.getElementById('domain_name_'+id).value;if(checkDom3('domain_name_'+id))
{document.getElementById(PageDiv).innerHTML='<img src="'+Loader+'" alt="whois..">';var ext=document.getElementById('ext_'+id).value;var domain=domain_name+ext;document.getElementById('domain_'+id).value=domain_name+ext;document.getElementById('type_'+id).value='dom_reg';if(tfr=='1')
{document.getElementById('type_'+id).value='tfr';}
var xmlhttp=false;try
{xmlhttp=new ActiveXObject('Msxml2.XMLHTTP');}
catch(e)
{try
{xmlhttp=new
ActiveXObject('Microsoft.XMLHTTP');}
catch(E)
{xmlhttp=false;}}
if(!xmlhttp&&typeof XMLHttpRequest!='undefined')
{xmlhttp=new XMLHttpRequest();}
file='singlewhois.php?domain_name=';chkid=domain_name+"&ext="+ext+"&id="+id+"&tfr="+tfr;xmlhttp.open('GET',file+chkid,true);xmlhttp.onreadystatechange=function()
{if(xmlhttp.readyState==4)
{var content=xmlhttp.responseText;if(content)
{document.getElementById(PageDiv).innerHTML=content;}}}
xmlhttp.send(null)
return;}
else
return false}
function CheckSelect(cond,id,name,value)
{if(cond)
{document.getElementById('domain_val_'+id).value=value;}
else
{document.getElementById('domain_val_'+id).value='';}}
function checkDom3(field)
{if(document.getElementById(field).value.length<3)
{alert("Please enter domain name");document.getElementById(field).focus();return false;}
else
{var str=document.getElementById(field).value;str=str.toLowerCase();if(str.substring(0,3)=="www.")
{alert("Please Enter Domain name without 'www'. If you want to register with 'www', please contact us.");document.getElementById(field).focus();return false;}
var iChars="!@#$%^&*()+=[]\\\';,./{}|\":<>?~_";for(var i=0;i<str.length;i++){if(iChars.indexOf(str.charAt(i))!=-1){alert("Requested Domain name '"+str+"' has special characters. \nThese are not allowed.");document.getElementById(field).focus();return false;}}}
return true;}
function UpdateCase()
{var select_box=document.getElementById('case_ext');var opt=select_box.options[select_box.selectedIndex];if(opt.id=="2")
{document.getElementById('normal').value=0;document.getElementById('special').value=1;}
else
{document.getElementById('normal').value=1;document.getElementById('special').value=0;}}
function Validate(frmObject)
{var StrChecks='';var found=0;var ZeroValue=0;for(var i=0;i<frmObject.elements.length;i++)
{var e=frmObject.elements[i];if(e.type=='checkbox')
{if(e.checked==true)
{StrChecks=StrChecks+e.name+",";found=1;}
ZeroValue=1;}}
if(ZeroValue==0)
{alert("Please click on 'Register' or 'Transfer in' for at least one domain.");return false;}
if(found)
{return true;}
else
{alert("Please check the box for the domains that you want to register or transfer in.");return false;}}
function CheckUltimate()
{frmObject=document.FrmdoThis;Valid=0;for(var i=0;i<frmObject.elements.length;i++)
{var e=frmObject.elements[i];if(e.type=='checkbox')
{if(e.checked==true)
{Valid=1;}}}
if(!Valid)
{alert('Please check the box for the domains that you want to register or transfer in.');return false;}
else
{document.FrmdoThis.submit();}}
