function popup() {
	var pop_window = window.open('call.php','call_window','width=250,height=250,scrollbars=auto,resizable=yes');
	pop_window.focus();
}


// order form

function checkDomainImg(img,toggle) {

	if (toggle == 1) {
		img.src="/images/plans/tick.gif";
		img.alt="Check the availabilty of this domain";
	} else {
		img.src="/images/1.gif";
		img.alt="";
	}
}

function checkDomainPopup(dom) {

	if (dom == 1) {
		domain = document.WorldPay.MC_domain1.value;
	} else {
		domain = document.WorldPay.MC_domain2.value;
	}
	if (domain == "") {
		alert('Please enter a domain');
	} else {
	}

}

// domains


function domainCheckForm(f) {

// have to do this because javascript doesnt like [] directly
// bummer
	alert(1);
	for(i=0; i < f.elements.length; i++) {
		if ((f.elements[i].name.indexOf('ext[]') != -1) && f.elements[i].checked) {
			f.submit();
			return true;
		}
	}
	alert('You haven\'t selected a Domain!');
	return false;
}

// hosting

function gPopup(u,w,h) {
	var pop_window = window.open(u,'_blank','width='+w+',height='+h+',scrollbars=yes,resizable=yes');
	pop_window.focus();
}

