function  printEmail(name){
	var domain = "HotLinkHosting.CoM";
	var subject = "Hello. Can you help me please?";
	document.write('<a title=\"Send an email to the ' + name + ' team\" href=\"mailto:' + name + '@' + domain + '?' + subject + '\">');
	document.write('Email ' + name + '</a><br />');
}
function showDiv(the_div) {
	changeDiv(the_div,"block")
}
function hideDiv(the_div) {
	changeDiv(the_div,"none")
}
function changeDiv(the_div,the_change) {
	var the_style = getStyleObject(the_div);
	if (the_style != false)
	{
		the_style.display = the_change;
	}
}
function getStyleObject(objectId) {
	if (document.getElementById && document.getElementById(objectId)) {
		return document.getElementById(objectId).style;
	} else if (document.all && document.all(objectId)) {
		return document.all(objectId).style;
	} else {
		return false;
	}
}
function toggleTbody(id) {
	if (document.getElementById) {
		var tbod = document.getElementById(id);
		if (tbod && typeof tbod.className == 'string') {
			if (tbod.className == 'off') {
				tbod.className = 'on';
			} else {
				tbod.className = 'off';
			}
		}
	}
	return false;
}
function toggleTbodyOff(id) {
	if (document.getElementById) {
		var tbod = document.getElementById(id);
		if (tbod && typeof tbod.className == 'string') {
			if (tbod.className == 'off') {
				tbod.className = 'off';
			} else {
				tbod.className = 'off';
			}
		}
	}
	return false;
}
function toggleTbodyOn(id) {
	if (document.getElementById) {
		var tbod = document.getElementById(id);
		if (tbod && typeof tbod.className == 'string') {
			if (tbod.className == 'off') {
				tbod.className = 'on';
			} else {
				tbod.className = 'on';
			}
		}
	}
	return false;
}
function disableDomainBox(formObj) {
	t = document.forms[0].length;
	boxes_checked = 0;
	for(i=1; i<t; i++) {
		if (document.forms[0][i].checked) {
			boxes_checked=boxes_checked+1;
		}
	}
	if (boxes_checked > 0) {
		formObj.domain.disabled = true
		formObj.tld_extension.disabled = true
	} else {
		formObj.domain.disabled = false
		formObj.tld_extension.disabled = false
	}
}
function showExistingClient() {
	document.getElementById('ExistingClient').style.display='';
}
function hideExistingClient() {
	document.getElementById('ExistingClient').style.display='none';
}
function checkLogin() {
	if (orderform.client_status[1]!=null && orderform.client_status[1].checked) {
		if (orderform.client_username.value == '' || orderform.client_password.value == '') {
			alert("<?php echo REQUIREDLOGIN ?>");
			return false;
		} else {
			return true;
		}
	} else {
		return true;
	}
}