// These functions are called in /index.php and /webmasters/registerlite.php which interact

function showPropertyCodes() {
	var property = document.liteform.property.options[document.liteform.property.selectedIndex].value;
	var domainID = document.liteform.domainID.value;
	if (!domainID) {
		alert("Please get your unique ID first");
		document.liteform.property.selectedIndex = 0;
		return false;
		}
	else {
		var formURL = "/liteiframe.php?property="+property+"&domainID="+domainID;
		if (property) {
			document.getElementById('framediv').style.visibility = 'visible';
			document.getElementById('feedframe').src= formURL;
			}
		else {
			return false;
			}
		}
	}
	
function passBackID(domainID) {
	parent.document.liteform.domainID.value = domainID;
	}
	
function retrieveID() {
	var domain = document.regform.domain.value;
	var email = document.regform.email.value;
	if (!domain || domain == "http://") {
		alert("A domain name must be provided to allocate an ID");
		return false;
		}
	else if (!email || email == "email@yourdomain.com") {
		alert ("The email address must be supplied as the activation email is sent there");
		return false;
		}
	else {
		document.getElementById('framediv').style.visibility = 'visible';
		var formURL = "/webmasters/registeriframe.php?domain="+domain+"&email="+email+"&email2="+email;
		document.getElementById('feedframe').src= formURL;
		}
	return true;
	}