
function goToURL1(obj) {
   i = obj.SupportedSites.selectedIndex;
   top.location = obj.SupportedSites.options[i].value;
}
function goToURL2(obj) {
   i = obj.SupportedSites2.selectedIndex;
   top.location = obj.SupportedSites2.options[i].value;
}
if (document.images) {
    img1on = new Image(); 
    img1on.src = "images/buttons/contactus_hi.gif";
    img1off = new Image(); 
    img1off.src = "images/buttons/contactus.gif";
    img2on = new Image(); 
    img2on.src = "images/buttons/online_hi.gif";
    img2off = new Image(); 
    img2off.src = "images/buttons/online.gif";
    img3on = new Image(); 
    img3on.src = "images/buttons/legal_hi.gif";
    img3off = new Image(); 
    img3off.src = "images/buttons/legal.gif";
    img4on = new Image(); 
    img4on.src = "images/buttons/support_hi.gif";
    img4off = new Image(); 
    img4off.src = "images/buttons/support.gif"; 
}
function imgOn(imgName){
	if(document.images){ document[imgName].src = eval(imgName + "on.src"); }
}
function imgOff(imgName){
	if(document.images){ document[imgName].src = eval(imgName + "off.src"); }
}
function formCheck(){
	if (document.Form.first.value == ""){
		alert("Please, Enter your First Name.");
		return false;
	}
	if (document.Form.last.value == ""){
		alert("Please, Enter your Last Name.");
		return false;
	}
	if (document.Form.site.value == ""){
		alert("Please, Select the Site your are a Member of.");
		return false;
	}
	if (document.Form.email.value.indexOf("@") == -1 || document.Form.email.value == ""){
		alert("Please, Enter a valid Email Address.");
		return false;
	}
	if (document.Form.help.value == ""){
        alert("Please, Enter a Description.");
        return false;
	}
}
function checkUsername(x){
	if(x.match(/^\ *promo[a-z0-9]{5}\ */i)){ 
		alert('Sorry, the \''+x+'\' account cannot be cancelled and will simply expire.\n\nPlease either use the lower "Retrieve Your Membership Informations" feature\nor login to the members-area support page to view the expiry date.');
 	}
	return true;
}

