// JavaScript Document
	function getPanelPage_domainLogin(PageDiv,file,Param,Loader)
	{
		document.getElementById(PageDiv).innerHTML='<center><img src="'+Loader+'" ></center>';
		var xmlhttp=false; //Clear our fetching variable
        try 
		{
                xmlhttp = new ActiveXObject('Msxml2.XMLHTTP'); //Try the first kind of active x object…
        } 
		catch (e) 
		{
			try 
			{
				xmlhttp = new
				ActiveXObject('Microsoft.XMLHTTP'); //Try the second kind of active x object
            } 
			catch (E) 
			{
                xmlhttp = false;
			}
        }
        if (!xmlhttp && typeof XMLHttpRequest!='undefined') 
		{
			xmlhttp = new XMLHttpRequest(); //If we were able to get a working active x object, start an XMLHttpRequest
        }
		var oFile=file;
        file = file+'.php'+ Param; //This is the path to the file we just finished making *
		xmlhttp.open('GET', file , true); //Open the file through GET, and add the page we want to retrieve as a GET variable **
		xmlhttp.onreadystatechange=function() 
		{
	        if (xmlhttp.readyState==4) 
			{ //Check if it is ready to recieve data
				var content = xmlhttp.responseText; //The content data which has been retrieved ***
            	if( content )
				{ //Make sure there is something in the content variable
					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('emailDetails').innerHTML = "Ali Kashif";
							document.getElementById('dummy').innerHTML = "";
						}
					}
        	    }
	        }
		}
        xmlhttp.send(null) //Nullify the XMLHttpRequest
		return;
	}
//=================================================================================================================
	function getPanelPage(PageDiv,file,Param,Loader)
	{
		document.getElementById(PageDiv).innerHTML='<center><img src="'+Loader+'" ></center>';
		var xmlhttp=false; //Clear our fetching variable
        try 
		{
                xmlhttp = new ActiveXObject('Msxml2.XMLHTTP'); //Try the first kind of active x object…
        } 
		catch (e) 
		{
			try 
			{
				xmlhttp = new
				ActiveXObject('Microsoft.XMLHTTP'); //Try the second kind of active x object
            } 
			catch (E) 
			{
                xmlhttp = false;
			}
        }
        if (!xmlhttp && typeof XMLHttpRequest!='undefined') 
		{
			xmlhttp = new XMLHttpRequest(); //If we were able to get a working active x object, start an XMLHttpRequest
        }
		var oFile=file;
        file = file+'.php'+ Param; //This is the path to the file we just finished making *
		xmlhttp.open('GET', file , true); //Open the file through GET, and add the page we want to retrieve as a GET variable **
		xmlhttp.onreadystatechange=function() 
		{
	        if (xmlhttp.readyState==4) 
			{ //Check if it is ready to recieve data
				var content = xmlhttp.responseText; //The content data which has been retrieved ***
            	if( content )
				{ //Make sure there is something in the content variable
					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; //Change the inner content of your div to the newly retrieved content ****
        	    }
	        }
		}
        xmlhttp.send(null) //Nullify the XMLHttpRequest
		return;
	}
//==================================================================
	function getPanelPageLoad(PageDiv,file,Param,Loader)
	{
		PageDiv.innerHTML='<center><h3>Loading </h3><img src="'+Loader+'" ></center>';
		var xmlhttp=false; //Clear our fetching variable
        try 
		{
                xmlhttp = new ActiveXObject('Msxml2.XMLHTTP'); //Try the first kind of active x object…
        } 
		catch (e) 
		{
			try 
			{
				xmlhttp = new
				ActiveXObject('Microsoft.XMLHTTP'); //Try the second kind of active x object
            } 
			catch (E) 
			{
                xmlhttp = false;
			}
        }
        if (!xmlhttp && typeof XMLHttpRequest!='undefined') 
		{
			xmlhttp = new XMLHttpRequest(); //If we were able to get a working active x object, start an XMLHttpRequest
        }
        file = file+'.php'+ Param; //This is the path to the file we just finished making *
		xmlhttp.open('GET', file , true); //Open the file through GET, and add the page we want to retrieve as a GET variable **
		xmlhttp.onreadystatechange=function() 
		{
	        if (xmlhttp.readyState==4) 
			{ //Check if it is ready to recieve data
				var content = xmlhttp.responseText; //The content data which has been retrieved ***
            	if( content )
				{ //Make sure there is something in the content variable
					PageDiv.innerHTML = content; //Change the inner content of your div to the newly retrieved content ****
        	    }
	        }
		}
        xmlhttp.send(null) //Nullify the XMLHttpRequest
		return;
	}
//==================================================================
	function getPage(PageDiv,file,Param,Loader)
	{
		document.getElementById(PageDiv).innerHTML='<center><h3>Loading </h3><img src="'+Loader+'" ></center>';
		var xmlhttp=false; //Clear our fetching variable
        try 
		{
                xmlhttp = new ActiveXObject('Msxml2.XMLHTTP'); //Try the first kind of active x object…
        } 
		catch (e) 
		{
			try 
			{
				xmlhttp = new
				ActiveXObject('Microsoft.XMLHTTP'); //Try the second kind of active x object
            } 
			catch (E) 
			{
                xmlhttp = false;
			}
        }
        if (!xmlhttp && typeof XMLHttpRequest!='undefined') 
		{
			xmlhttp = new XMLHttpRequest(); //If we were able to get a working active x object, start an XMLHttpRequest
        }
        file = file+'.php?domain='; //This is the path to the file we just finished making *
		xmlhttp.open('GET', file + Param, true); //Open the file through GET, and add the page we want to retrieve as a GET variable **
		xmlhttp.onreadystatechange=function() 
		{
	        if (xmlhttp.readyState==4) 
			{ //Check if it is ready to recieve data
				var content = xmlhttp.responseText; //The content data which has been retrieved ***
            	if( content )
				{ //Make sure there is something in the content variable
					document.getElementById(PageDiv).innerHTML = content; //Change the inner content of your div to the newly retrieved content ****
        	    }
	        }
		}
        xmlhttp.send(null) //Nullify the XMLHttpRequest
		return;
	}
//==================================================================
function ShowDomanSearch(PageDiv,file,Param,Loader)
	{
		document.getElementById(PageDiv).innerHTML='<center><h3>Loading </h3><img src="'+Loader+'" ></center>';
		var xmlhttp=false; //Clear our fetching variable
        try 
		{
                xmlhttp = new ActiveXObject('Msxml2.XMLHTTP'); //Try the first kind of active x object…
        } 
		catch (e) 
		{
			try 
			{
				xmlhttp = new
				ActiveXObject('Microsoft.XMLHTTP'); //Try the second kind of active x object
            } 
			catch (E) 
			{
                xmlhttp = false;
			}
        }
        if (!xmlhttp && typeof XMLHttpRequest!='undefined') 
		{
			xmlhttp = new XMLHttpRequest(); //If we were able to get a working active x object, start an XMLHttpRequest
        }
        file = file+'.php?Param='; //This is the path to the file we just finished making *
		xmlhttp.open('GET', file + Param, true); //Open the file through GET, and add the page we want to retrieve as a GET variable **
		xmlhttp.onreadystatechange=function() 
		{
	        if (xmlhttp.readyState==4) 
			{ //Check if it is ready to recieve data
				var content = xmlhttp.responseText; //The content data which has been retrieved ***
            	if( content )
				{ //Make sure there is something in the content variable
					document.getElementById(PageDiv).innerHTML = content; //Change the inner content of your div to the newly retrieved content ****
				}
	        }
		}
        xmlhttp.send(null) //Nullify the XMLHttpRequest
		return;
	}
//==================================================================
	function getAdslPage(PageDiv,file,Param,Loader)
	{
		
		document.getElementById(PageDiv).innerHTML='<center><h3>Loading </h3><img src="'+Loader+'" ></center>';
		var xmlhttp=false; //Clear our fetching variable
        try 
		{
                xmlhttp = new ActiveXObject('Msxml2.XMLHTTP'); //Try the first kind of active x object…
        } 
		catch (e) 
		{
			try 
			{
				xmlhttp = new
				ActiveXObject('Microsoft.XMLHTTP'); //Try the second kind of active x object
            } 
			catch (E) 
			{
                xmlhttp = false;
			}
        }
        if (!xmlhttp && typeof XMLHttpRequest!='undefined') 
		{
			xmlhttp = new XMLHttpRequest(); //If we were able to get a working active x object, start an XMLHttpRequest
        }
        file = file+'.php?Phone='; //This is the path to the file we just finished making *
		xmlhttp.open('GET', file + Param, true); //Open the file through GET, and add the page we want to retrieve as a GET variable **
		xmlhttp.onreadystatechange=function() 
		{
	        if (xmlhttp.readyState==4) 
			{ //Check if it is ready to recieve data
				var content = xmlhttp.responseText; //The content data which has been retrieved ***
            	if( content )
				{ //Make sure there is something in the content variable
					document.getElementById(PageDiv).innerHTML = content; //Change the inner content of your div to the newly retrieved content ****
        	    }
	        }
		}
        xmlhttp.send(null) //Nullify the XMLHttpRequest
		return;
	
	}
//==================================================================
	function getAdslStep2(PageDiv,file,Param,Loader)
	{
		
		document.getElementById(PageDiv).innerHTML='<center><h3>Loading </h3><img src="'+Loader+'" ></center>';
		var xmlhttp=false; //Clear our fetching variable
        try 
		{
                xmlhttp = new ActiveXObject('Msxml2.XMLHTTP'); //Try the first kind of active x object…
        } 
		catch (e) 
		{
			try 
			{
				xmlhttp = new
				ActiveXObject('Microsoft.XMLHTTP'); //Try the second kind of active x object
            } 
			catch (E) 
			{
                xmlhttp = false;
			}
        }
        if (!xmlhttp && typeof XMLHttpRequest!='undefined') 
		{
			xmlhttp = new XMLHttpRequest(); //If we were able to get a working active x object, start an XMLHttpRequest
        }
        file = file+'.php?pid='; //This is the path to the file we just finished making *
		xmlhttp.open('GET', file + Param, true); //Open the file through GET, and add the page we want to retrieve as a GET variable **
		xmlhttp.onreadystatechange=function() 
		{
	        if (xmlhttp.readyState==4) 
			{ //Check if it is ready to recieve data
				var content = xmlhttp.responseText; //The content data which has been retrieved ***
            	if( content )
				{ //Make sure there is something in the content variable
					document.getElementById(PageDiv).innerHTML = content; //Change the inner content of your div to the newly retrieved content ****
        	    }
	        }
		}
        xmlhttp.send(null) //Nullify the XMLHttpRequest
		return;
	
	}	
//==================================================================
	function getSeoPage(PageDiv,file,Param,Loader)
	{
		document.getElementById(PageDiv).innerHTML='<center><h3>Loading </h3><img src="'+Loader+'" ></center>';
		var xmlhttp=false; //Clear our fetching variable
        try 
		{
                xmlhttp = new ActiveXObject('Msxml2.XMLHTTP'); //Try the first kind of active x object…
        } 
		catch (e) 
		{
			try 
			{
				xmlhttp = new
				ActiveXObject('Microsoft.XMLHTTP'); //Try the second kind of active x object
            } 
			catch (E) 
			{
                xmlhttp = false;
			}
        }
        if (!xmlhttp && typeof XMLHttpRequest!='undefined') 
		{
			xmlhttp = new XMLHttpRequest(); //If we were able to get a working active x object, start an XMLHttpRequest
        }
        file = file+'.php?Param='; //This is the path to the file we just finished making *
		xmlhttp.open('GET', file + Param, true); //Open the file through GET, and add the page we want to retrieve as a GET variable **
		xmlhttp.onreadystatechange=function() 
		{
	        if (xmlhttp.readyState==4) 
			{ //Check if it is ready to recieve data
				var content = xmlhttp.responseText; //The content data which has been retrieved ***
            	if( content )
				{ //Make sure there is something in the content variable
					document.getElementById(PageDiv).innerHTML = content; //Change the inner content of your div to the newly retrieved content ****
        	    }
	        }
		}
        xmlhttp.send(null) //Nullify the XMLHttpRequest
		return;
	
	}
//==================================================================
	function getDetails(NameDiv,PriceDiv,TotalDiv,file,Param)
	{
		var xmlhttp=false; //Clear our fetching variable
        try 
		{
                xmlhttp = new ActiveXObject('Msxml2.XMLHTTP'); //Try the first kind of active x object…
        } 
		catch (e) 
		{
			try 
			{
				xmlhttp = new
				ActiveXObject('Microsoft.XMLHTTP'); //Try the second kind of active x object
            } 
			catch (E) 
			{
                xmlhttp = false;
			}
        }
        if (!xmlhttp && typeof XMLHttpRequest!='undefined') 
		{
			xmlhttp = new XMLHttpRequest(); //If we were able to get a working active x object, start an XMLHttpRequest
        }
        file = file+'.php?Param='; //This is the path to the file we just finished making *
		xmlhttp.open('GET', file + Param, true); //Open the file through GET, and add the page we want to retrieve as a GET variable **
		xmlhttp.onreadystatechange=function() 
		{
	        if (xmlhttp.readyState==4) 
			{ //Check if it is ready to recieve data
				var content = xmlhttp.responseText; //The content data which has been retrieved ***
            	if( content )
				{ //Make sure there is something in the content variable
					Newcontent=content;
					temp=Newcontent.split('^');
					var pName=temp[0];
					var pPrice=temp[1]+" / "+ temp[2];
					document.getElementById(NameDiv).innerHTML = pName; //Change the inner content of your div to the newly retrieved content ****
					document.getElementById(PriceDiv).innerHTML = pPrice; //Change the inner content of your div to the newly retrieved content ****
					document.getElementById(TotalDiv).innerHTML = temp[3]; //Change the inner content of your div to the newly retrieved content ****
					document.getElementById("backupid").value = Param;
					
        	    }
	        }
		}
        xmlhttp.send(null) //Nullify the XMLHttpRequest
		return;
	}
//==================================================================
	function getOptionsDetails(TotalDiv,file,Param)
	{
		if(Param=="backupid")
		{
				Param = document.getElementById(Param).value;
		}
		var xmlhttp=false; //Clear our fetching variable
        try 
		{
                xmlhttp = new ActiveXObject('Msxml2.XMLHTTP'); //Try the first kind of active x object…
        } 
		catch (e) 
		{
			try 
			{
				xmlhttp = new
				ActiveXObject('Microsoft.XMLHTTP'); //Try the second kind of active x object
            } 
			catch (E) 
			{
                xmlhttp = false;
			}
        }
        if (!xmlhttp && typeof XMLHttpRequest!='undefined') 
		{
			xmlhttp = new XMLHttpRequest(); //If we were able to get a working active x object, start an XMLHttpRequest
        }
        file = file+'.php?Param='; //This is the path to the file we just finished making *
		xmlhttp.open('GET', file + Param, true); //Open the file through GET, and add the page we want to retrieve as a GET variable **
		xmlhttp.onreadystatechange=function() 
		{
	        if (xmlhttp.readyState==4) 
			{ //Check if it is ready to recieve data
				var content = xmlhttp.responseText; //The content data which has been retrieved ***
            	if( content )
				{ //Make sure there is something in the content variable
					document.getElementById(TotalDiv).innerHTML = content; //Change the inner content of your div to the newly retrieved content ****
					
        	    }
	        }
		}
        xmlhttp.send(null) //Nullify the XMLHttpRequest
		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') //modified for new hosting packages
					{
						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;
		//alert(ChkBox);
		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() { //v3.0
  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; //Clear our fetching variable
        try 
		{
                xmlhttp = new ActiveXObject('Msxml2.XMLHTTP'); //Try the first kind of active x object…
        } 
		catch (e) 
		{
			try 
			{
				xmlhttp = new
				ActiveXObject('Microsoft.XMLHTTP'); //Try the second kind of active x object
            } 
			catch (E) 
			{
                xmlhttp = false;
			}
        }
        if (!xmlhttp && typeof XMLHttpRequest!='undefined') 
		{
			xmlhttp = new XMLHttpRequest(); //If we were able to get a working active x object, start an XMLHttpRequest
        }
        file = file+'.php'; //This is the path to the file we just finished making *
		xmlhttp.open('GET', file + Param, true); //Open the file through GET, and add the page we want to retrieve as a GET variable **
		xmlhttp.onreadystatechange=function() 
		{
	        if (xmlhttp.readyState==4) 
			{ //Check if it is ready to recieve data
				var content = xmlhttp.responseText; //The content data which has been retrieved ***
            	if( content )
				{ //Make sure there is something in the content variable
					//document.getElementById(PageDiv).innerHTML = content; //Change the inner content of your div to the newly retrieved 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) //Nullify the XMLHttpRequest
		return ;
	
	}
//================================================================
	function verifyMailLogin(PageDiv,file,Param,Loader)
	{
		document.getElementById(PageDiv).innerHTML='<center><h3>Verifying... </h3><img src="'+Loader+'" ></center>';
		var xmlhttp=false; //Clear our fetching variable
        try 
		{
                xmlhttp = new ActiveXObject('Msxml2.XMLHTTP'); //Try the first kind of active x object…
        } 
		catch (e) 
		{
			try 
			{
				xmlhttp = new
				ActiveXObject('Microsoft.XMLHTTP'); //Try the second kind of active x object
            } 
			catch (E) 
			{
                xmlhttp = false;
			}
        }
        if (!xmlhttp && typeof XMLHttpRequest!='undefined') 
		{
			xmlhttp = new XMLHttpRequest(); //If we were able to get a working active x object, start an XMLHttpRequest
        }
        file = file+'.php'; //This is the path to the file we just finished making *
		xmlhttp.open('GET', file + Param, true); //Open the file through GET, and add the page we want to retrieve as a GET variable **
		xmlhttp.onreadystatechange=function() 
		{
	        if (xmlhttp.readyState==4) 
			{ //Check if it is ready to recieve data
				var content = xmlhttp.responseText; //The content data which has been retrieved ***
            	if( content )
				{ //Make sure there is something in the content variable
					//document.getElementById(PageDiv).innerHTML = content; //Change the inner content of your div to the newly retrieved 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')
							{
								//we are in webmail section for sure
								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) //Nullify the XMLHttpRequest
		return ;
	
	}	
//================================================================
	function verifyCPLogin(PageDiv,file,Param,Loader)
	{
		document.getElementById(PageDiv).innerHTML='<center><h3>Verifying... </h3><img src="'+Loader+'" ></center>';
		var xmlhttp=false; //Clear our fetching variable
        try 
		{
                xmlhttp = new ActiveXObject('Msxml2.XMLHTTP'); //Try the first kind of active x object…
        } 
		catch (e) 
		{
			try 
			{
				xmlhttp = new
				ActiveXObject('Microsoft.XMLHTTP'); //Try the second kind of active x object
            } 
			catch (E) 
			{
                xmlhttp = false;
			}
        }
        if (!xmlhttp && typeof XMLHttpRequest!='undefined') 
		{
			xmlhttp = new XMLHttpRequest(); //If we were able to get a working active x object, start an XMLHttpRequest
        }
        file = file+'.php'; //This is the path to the file we just finished making *
		xmlhttp.open('GET', file + Param, true); //Open the file through GET, and add the page we want to retrieve as a GET variable **
		xmlhttp.onreadystatechange=function() 
		{
	        if (xmlhttp.readyState==4) 
			{ //Check if it is ready to recieve data
				var content = xmlhttp.responseText; //The content data which has been retrieved ***
            	if( content )
				{ //Make sure there is something in the content variable
					//document.getElementById(PageDiv).innerHTML = content; //Change the inner content of your div to the newly retrieved content ****
					if(content=="0")
					{
						document.getElementById(PageDiv).innerHTML = "<font color=#FF0000>Invalid Username and Password Combination</font>";
					}
					else
					{
						tmpContent=content;
						//document.getElementById(PageDiv).innerHTML=tmpContent;
						
						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) //Nullify the XMLHttpRequest
		return ;
	
	}		
//================================================================
	function verifyDnsLogin(PageDiv,file,Param,Loader)
	{
		document.getElementById(PageDiv).innerHTML='<center><h3>Verifying... </h3><img src="'+Loader+'" ></center>';
		var xmlhttp=false; //Clear our fetching variable
        try 
		{
                xmlhttp = new ActiveXObject('Msxml2.XMLHTTP'); //Try the first kind of active x object…
        } 
		catch (e) 
		{
			try 
			{
				xmlhttp = new
				ActiveXObject('Microsoft.XMLHTTP'); //Try the second kind of active x object
            } 
			catch (E) 
			{
                xmlhttp = false;
			}
        }
        if (!xmlhttp && typeof XMLHttpRequest!='undefined') 
		{
			xmlhttp = new XMLHttpRequest(); //If we were able to get a working active x object, start an XMLHttpRequest
        }
        file = file+'.php'; //This is the path to the file we just finished making *
		xmlhttp.open('GET', file + Param, true); //Open the file through GET, and add the page we want to retrieve as a GET variable **
		xmlhttp.onreadystatechange=function() 
		{
	        if (xmlhttp.readyState==4) 
			{ //Check if it is ready to recieve data
				var content = xmlhttp.responseText; //The content data which has been retrieved ***
            	if( content )
				{ //Make sure there is something in the content variable
					//document.getElementById(PageDiv).innerHTML = content; //Change the inner content of your div to the newly retrieved 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) //Nullify the XMLHttpRequest
		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; //Clear our fetching variable
        try 
		{
                xmlhttp = new ActiveXObject('Msxml2.XMLHTTP'); //Try the first kind of active x object…
        } 
		catch (e) 
		{
			try 
			{
				xmlhttp = new
				ActiveXObject('Microsoft.XMLHTTP'); //Try the second kind of active x object
            } 
			catch (E) 
			{
                xmlhttp = false;
			}
        }
        if (!xmlhttp && typeof XMLHttpRequest!='undefined') 
		{
			xmlhttp = new XMLHttpRequest(); //If we were able to get a working active x object, start an XMLHttpRequest
        }
        file = file+'.php?Param='; //This is the path to the file we just finished making *
		xmlhttp.open('GET', file + Param, true); //Open the file through GET, and add the page we want to retrieve as a GET variable **
		xmlhttp.onreadystatechange=function() 
		{
	        if (xmlhttp.readyState==4) 
			{ //Check if it is ready to recieve data
				var content = xmlhttp.responseText; //The content data which has been retrieved ***
            	if( content )
				{ //Make sure there is something in the content variable
					Newcontent=content;
					temp=Newcontent.split('^');
					var pName=temp[0];
					var pPrice=temp[1];
					document.getElementById(pack_id).value = Param; //Change the inner content of your div to the newly retrieved content ****
					document.getElementById(PriceDiv).innerHTML = pPrice; //Change the inner content of your div to the newly retrieved content ****
					document.getElementById(TotalDiv).innerHTML = temp[2]; //Change the inner content of your div to the newly retrieved content ****
					
        	    }
	        }
		}
        xmlhttp.send(null) //Nullify the XMLHttpRequest
		return;
	}
