<!-- hide from old browser
// No rightclick script v.2.5
// (c) 1998 barts1000
// barts1000@aol.com
// Don't delete this header!

var message="The graphics and text may not be removed from this website without our written permission!\n\nExcept where noted, all graphics, text and content are Copyright © 2004."; // Message for the alert box

self.name = "main"; // names current window as "main"
this.focus();

// Don't edit below!

function click(e) {
if (document.all) {
if (event.button == 2) {
alert(message);
return false;

}

}
if (document.layers) {
if (e.which == 3) {
alert(message);
return false;

}

}

}
if (document.layers) {
document.captureEvents(Event.MOUSEDOWN);

}
document.onmousedown=click;



function HelperShowHide(id)
{
	helper = document.getElementById(id);
	if (helper.style.display == 'none')
	{
		helper.style.display = 'block';
		helper.style.position = 'relative';
	}
	else
	{
		helper.style.display = 'none';
	}
}

function HelperShow(id)
{
	HelperHide('Guide1');
	HelperHide('Guide2');
	HelperHide('Guide3');
	HelperHide('Guide4');

	helper = document.getElementById(id);
	if (helper.style.display == 'none')
	{
		helper.style.display = 'block';
		helper.style.position = 'relative';
	}
}

function HelperHide(id)
{
	helper = document.getElementById(id);
	if (helper.style.display != 'none')
	{
		helper.style.display = 'none';
	}
}


function showpic(pic) {
	if (pic) URL = pic; else URL = "pic.htm";
	day = new Date();
	id = day.getTime();
	eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=550,height=450,left = 0,top = 0');");
}


function xSubmit(){
	var form=document.helpform;

var valid = "abcdefghijklmnopqrstuvwxyz0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ -"
var valid2 = "abcdefghijklmnopqrstuvwxyz0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-"
var ok = "yes";
var temp;

	var Raddress1=form.Raddress1.value;
	if(Raddress1==""){
		alert("We need your mailing address.");
		form.Raddress1.focus();
		return false;
	} //end if(form.Raddress1.value=="")



	return true;

} //end function xSubmit


function zSubmit(){
	var form=document.helpform;

var valid = "abcdefghijklmnopqrstuvwxyz0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ -"
var valid2 = "abcdefghijklmnopqrstuvwxyz0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-"
var ok = "yes";
var temp;

	var Remailaddress=form.Remailaddress.value;
	if(Remailaddress==""){
		alert("Please let us know your Email address.");
		form.Remailaddress.focus();
		return false;
	} //end if(form.Remailaddress.value=="")

	var Rphone=form.Rphone.value;
	if(Rphone==""){
		alert("Please let us know a contact number.");
		form.Rphone.focus();
		return false;
	} //end if(form.Rphone.value=="")

	var Rcountry=form.Rcountry.value;
	if(Rcountry==""){
		alert("Please let us know your country of residence.");
		form.Rcountry.focus();
		return false;
	} //end if(form.Rcountry.value=="")
	
	var Rnotes=form.Rnotes.value;
	if(Rnotes==""){
		alert("Please fill-in the Question field.");
		form.Rnotes.focus();
		return false;
	} //end if(form.Rnotes.value=="")



	return true;

} //end function zSubmit

function ySubmit(coy){
	var form=document.helpform;

	var valid = "abcdefghijklmnopqrstuvwxyz0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ. -";
	var valid2 = "abcdefghijklmnopqrstuvwxyz0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-";
	var valid3 = "0123456789";
	var ok = "yes";
	var temp;

	var confirmid=form.confirmid.value;
	if(confirmid==""){
		alert("Please choose a web url.");
		form.confirmid.focus();
		return false;
	} //end if(form.confirmid.value=="")

	for (var i=0; i<form.confirmid.value.length; i++) {
		temp = "" + form.confirmid.value.substring(i, i+1);
		if (valid2.indexOf(temp) == "-1") ok = "no";
	}
	
	if (ok == "no") {
		alert("Invalid characters in the chosen URL!");
		form.confirmid.focus();
		form.confirmid.select();
		return false;
   	}
   	
	var confirmlname=form.confirmlname.value;
	if(confirmlname==""){
		alert("Please let us know your FULL name.");
		form.confirmlname.focus();
		return false;
	} //end if(form.confirmlname.value=="")


	var confirmphone=form.confirmphone.value;
	if(confirmphone==""){
		alert("Please let us know your phone number.");
		form.confirmphone.focus();
		return false;
	} //end if(form.confirmphone.value=="")


	var email=form.confirmemailaddress.value;
	if(email=="" || email.length < 5 || email.search(/\S+@\S+\.\S{2,4}/ig)==-1){
		alert("Please submit a valid email address");
		form.confirmemailaddress.focus();
		form.confirmemailaddress.select();
		return false;
	}

	var email2=form.confirmemailaddress2.value;
	if(email2=="" || email2.length < 5 || email2.search(/\S+@\S+\.\S{2,4}/ig)==-1){
		alert("Please check the email address");
		form.confirmemailaddress2.focus();
		form.confirmemailaddress2.select();
		return false;
	}

	if(email != email2){
		alert("Email addresses does not match! Please check!");
		form.confirmemailaddress2.focus();
		form.confirmemailaddress2.select();
		return false;
	}


	var confirmcountry=form.confirmcountry.value;
	if(confirmcountry==""){
		alert("Please let us know your country of residence.");
		form.confirmcountry.focus();
		return false;
	} //end if(form.confirmcountry.value=="")


	var confirmcoyid=form.confirmcoyid.value;
	if(confirmcoyid==""){
		alert("NOTE: You did not indicate a "+coy+" ID. Remember to update this record by logging on to the member's area in future. Otherwise your visitors to the rebranded website will not be able to sign-up directly on the official "+coy+" website without your "+coy+" ID.");
	}
	else {
		for (var i=0; i<form.confirmcoyid.value.length; i++) {
			temp = "" + form.confirmcoyid.value.substring(i, i+1);
			if (valid3.indexOf(temp) == "-1") ok = "no";
		}

		if (ok == "no") {
			alert("Only Numbers are allowed in the "+coy+" ID!");
			form.confirmcoyid.focus();
			form.confirmcoyid.select();
			return false;
		}
	}


	if (form.check.checked == false )
	{
		alert('You must accept the Terms and Conditions to Continue');
		return false;
	}


	return true;

} //end function ySubmit

function popup(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=1,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,left = 0,top = 0, width=650, height=600');");
}


function popup2(html,signupurl) {

	window.location.href = "loadsteps.htm?url="+html+"signupurl="+signupurl;
}



function popup3(html,signupurl) {
    var windowwidth = 630, topheight = 400, bottomheight = 40; // default sizes


    if (window.screen) {
        windowwidth = window.screen.availWidth - 10;
        topheight = (window.screen.availHeight * 20 / 100) - 10;
        bottomheight = (window.screen.availHeight * 80 / 100) - 90;
    }

    w1 = window.open(signupurl,'windowBottom','width='+windowwidth+',height='+bottomheight+',screenX=0,screenY='+topheight+',top='+topheight+',left=0,toolbar=yes,scrollbars=yes,resizable=yes,statusbar=1,location=yes');
//    w2 = window.open(html+'?id='+id+'&goto='+escape(nexturl),'windowTop','width='+windowwidth+',height='+topheight+',screenX=0,screenY=0,top=0,left=0,toolbar=no,scrollbars=yes,resizable=yes,statusbar=0');
    w2 = window.open(html,'windowTop','width='+windowwidth+',height='+topheight+',screenX=0,screenY=0,top=0,left=0,toolbar=no,scrollbars=yes,resizable=yes,statusbar=0,location=0');

    if (w1.window) w1.window.focus();
    if (w2.window) w2.window.focus();
}


// -->


