/*
** Affiche ou cache les plan d'h�bergement
*/
function AfficherPlan()
{
	var x=document.getElementById("formDomain")
	if(x.ordersel.value=="hosting") {
		document.getElementById("plan").style.display = "";
	}
	else {
		document.getElementById("plan").style.display = "none";
	}
}

/*
** Change l'URL lorsque le client submit le formulaire
*/
function ChangerURL(plan, lang, ext)
{
	var x=document.getElementById("formDomain")
	if(x.ordersel.value=="hosting") {
		if (x.Typeplan.value == '') {
			alert('You have to chose an hosting plan');
			x.Typeplan.focus();
			return false;
		}
		x.action = "https://secure.sherweb.com/newcart/index.php?plan="+plan+"&idcat=1&lang="+ lang.toUpperCase() +"&ext="+ ext.toUpperCase();
	}
	else {
		x.action = "https://secure.sherweb.com/newcart/index.php?plan=183&idcat=999&lang="+ lang.toUpperCase() +"&ext="+ ext.toUpperCase();
	}
	return true;
}

/*
** Ouvre un popup avec les details du plan
*/
function Popup(plan, lg, ext)
{ 
	if(plan!='') {
 		//window.open('http://ccs.sherweb.com/domainname/detaildomain'+lg+'.php?plan='+plan+"&ext="+ext,"Details","'resizable=no, location=no, width=455, height=230, menubar=no, status=no, scrollbars=no, menubar=no'");
	}
}

function showImage(imageSrc) {
	if (document.images) document.images['myImage'].src = imageSrc;
}