// JavaScript Document
function addCart(varValue)
								{
									if(varValue==1)
									{
										
										if(document.formBronze.hostingBronze[0].checked)
										document.formBronze.id.value=document.formBronze.hostingBronze[0].value;
										if(document.formBronze.hostingBronze[1].checked)
										document.formBronze.id.value=document.formBronze.hostingBronze[1].value;
										document.formBronze.hostingId.value="";
										document.formBronze.submit();
									}
									if(varValue==2)
									{
										if(document.formSilver.hostingSilver[0].checked)
										document.formSilver.id.value=document.formSilver.hostingSilver[0].value;
										if(document.formSilver.hostingSilver[1].checked)
										document.formSilver.id.value=document.formSilver.hostingSilver[1].value;
										document.formSilver.hostingId.value="";
										document.formSilver.submit();
									}
									if(varValue==3)
									{
										if(document.formGold.hostingGold[0].checked)
										document.formGold.id.value=document.formGold.hostingGold[0].value;
										if(document.formGold.hostingGold[1].checked)
										document.formGold.id.value=document.formGold.hostingGold[1].value;
										document.formGold.hostingId.value="";
										document.formGold.submit();
									}
								}
								function viewDetail(varValue)
								{
									if(varValue==1)
									{
										if(document.formBronze.hostingBronze[0].checked)
										
										document.formBronze.hostingId.value=document.formBronze.hostingBronze[0].value;
										if(document.formBronze.hostingBronze[1].checked)
										document.formBronze.hostingId.value=document.formBronze.hostingBronze[1].value;
										
										document.formBronze.submit();
									}
									if(varValue==2)
									{
										if(document.formSilver.hostingSilver[0].checked)
											document.formSilver.hostingId.value=document.formSilver.hostingSilver[0].value;
										if(document.formSilver.hostingSilver[1].checked)
											document.formSilver.hostingId.value=document.formSilver.hostingSilver[1].value;										
										document.formSilver.submit();
									}
									if(varValue==3)
									{
										if(document.formGold.hostingGold[0].checked)
										document.formGold.hostingId.value=document.formGold.hostingGold[0].value;
										if(document.formGold.hostingGold[1].checked)
										document.formGold.hostingId.value=document.formGold.hostingGold[1].value;
										document.formGold.submit();
									}
								}
								


//ddomain
function checkDomainName(){
	
	/*if(document.frmDomainSearch.domainName.value == ""){
			alert("Enter domain name to perform search.");
			document.frmDomainSearch.domainName.focus();
			return false;
		}
	else if(document.frmDomainSearch.domainName.value.indexOf(',') != -1){
		alert("Please remove comma");
		return false;
	}
	else if(document.frmDomainSearch.domainName.value.indexOf('.') != -1){
		var dmnmdot = document.frmDomainSearch.domainName.value.indexOf('.');
		document.frmDomainSearch.ddomain.value = document.frmDomainSearch.domainName.value.substring(0,dmnmdot);
	}
	else{
	document.frmDomainSearch.ddomain.value = document.frmDomainSearch.domainName.value;
	*/
	document.frmDomainSearch.submit();
	//}*/
}





///// Chromeless window
function openIT(winURL,winName,winW,winH,winTitle) {
	theURL					= winURL;
	wname					= winName;
	W						= winW;
	H						= winH;
	windowCERRARa 			= "../images/close_a.gif"
	windowCERRARd 			= "../images/close_d.gif"
	windowCERRARo 			= "../images/close_o.gif"
	windowNONEgrf 			= "../images/none.gif"
	windowCLOCK				= "../images/clock.gif"
	windowREALtit			= "  Task title"
	//windowTIT 	    		= "<font face=verdana size=1>  " + winTitle + "</font>"
	windowTIT 	    		= "<img src='../images/serverseatext.gif'>"
	windowBORDERCOLOR   	= "#007ab2"
	windowBORDERCOLORsel	= "#007ab2"
	windowTITBGCOLOR    	= "#007ab2"
	windowTITBGCOLORsel 	= "#007ab2"
	openchromeless(theURL, wname, W, H, windowCERRARa, windowCERRARd, windowCERRARo, windowNONEgrf, windowCLOCK, windowTIT, windowREALtit , windowBORDERCOLOR, windowBORDERCOLORsel, windowTITBGCOLOR, windowTITBGCOLORsel)
}
////// end chromeless window




function openwin(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}



function checkboxs() 
{ 

var nauman_ahmed=0; 
for (var i=0;i<document.whform.elements.length; i++) 
{ 
var e = document.whform.elements[i]; 

if ((e.type=='checkbox')) 
{ 
if (document.whform.elements[i].checked==true) 
{ 
nauman_ahmed=1; 

} 

} 
} 

if(nauman_ahmed==0){ 
alert("Select Domain to Continue."); 
return false; 
}
else{
return true; 
}
} 

/// Start hander function for form submision

function handler(e){
	if(document.all){
		e = window.event;
	}
	var key;
	
	if(document.all) key = e.keyCode;
	
	var chr = String.fromCharCode(key);
	
	if(key == 13) document.frmLogin.submit();
	
}

/// end hander function for form submision

