<!--
startList = function() {
	if (document.all&&document.getElementById) {
		navRoot = document.getElementById("navigation");
		for (i=0; i<navRoot.childNodes.length; i++) {
			node = navRoot.childNodes[i];
			if (node.nodeName=="LI") {
				node.onmouseover=function() {
					this.className+=" over";
					this.style.zIndex=100;
				}
				node.onmouseout=function() {
					this.className=this.className.replace(" over", "");
					this.style.zIndex=5;
				}
			}
		}
	}
}
window.onload=startList;
	//above script for rollOver capabilities on list items - for IE5.0+
//-->

<!-- 
// Open a window of the desired size in the centre of the screen. 
function openWindow(target_file, width, height, hasScrollBars) { 
    // ADD NAME FIELD and make sure it get's focus!!! 
    var theWidth = width; 
    var theHeight = height; 
    var scrollBars = "scrollbars"; 
    if (hasScrollBars == false) scrollBars = "scrollbars=0"; 
    if ((theWidth == "")||(theWidth == null)) theWidth = 740; 
    if ((theHeight == "")||(theHeight == null)) theHeight = 750; 
    var theLeft = (screen.availWidth - theWidth)/2; 
    var theTop = (screen.availHeight - theHeight)/2; 
    var popupWin = window.open(target_file, '_' + Math.round(Math.random() * 1000000), 'top='+theTop+',left='+theLeft+',menubar=0,toolbar=0,location=0,directories=0,status=0,'+scrollBars+',resizable,width='+theWidth+',height='+theHeight);
} 
//--> 

<!--
// Open a window of the desired size in the centre of the screen.
function openLSWindowTandR(year, wkno, lang, tabno, eventid, ref_file, width, height, hasScrollBars) {
	// ADD NAME FIELD and make sure it get's focus!!!
	var theWidth = width;
	var theHeight = height;
	var scrollBars = "scrollbars";
	if (hasScrollBars == false) scrollBars = "scrollbars=0";
	if ((theWidth == "")||(theWidth == null)) theWidth =500;
	if ((theHeight == "")||(theHeight == null)) theHeight =668;
	var theLeft = (screen.availWidth - theWidth)/2;
	var theTop = (screen.availHeight - theHeight)/2;
	var strCheckRef = escape(ref_file);

	var lsURL = "http://www.protennislive.com/frameset.asp?year="+year+"&wkno="+wkno+"&lang="+lang+"&tabno="+tabno+"&eventid="+eventid+"&ref="+strCheckRef;
	var popupWin = window.open(lsURL, '_' + Math.round(Math.random() * 1000000),'top='+theTop+',left='+theLeft+',menubar=0,toolbar=0,location=0,directories=0,status=0,'+scrollBars+',width='+theWidth+', height='+theHeight);
}
//-->

<!--
function pop_up(url,width,height){
	var left,top;
	if(window.screen){left=(screen.width-width)/2;top=(screen.height-height)/2;}
	else{left=200;top=170;}
	params='height='+height+',width='+width+',status=no,toolbar=no,menubar=no,scrollbars=yes,top='+top+',left='+left;
	var newwin = window.open(url,'address', params);
	newwin.window.focus();
}
	//above script for popup windows
//-->
<!--

function validate_form ( )
{
	valid = true;
	alerttxt = "We have had a problem with the following fields:";

        if ( document.contact_form.firstname.value == "" )
        {
                alerttxt += "\nFirst Name is required.";
                valid = false;
        }
        if ( document.contact_form.lastname.value == "" )
        {
                alerttxt += "\nLast Name is required.";
                valid = false;
        }
        if ( document.contact_form.email.value == "" )
        {
                alerttxt += "\nEmail Address is required.";
                valid = false;
        }
		if ( !document.contact_form.email.value == document.contact_form.confirmemail.value )
		{
				alerttxt += "\nYour email did not match the confirmation.";
				valid = false;
		}
         if ( document.contact_form.address.value == "" )
        {
                alerttxt += "\nAddress is required.";
                valid = false;
        }
        if ( document.contact_form.city.value == "" )
        {
                alerttxt += "\nCity is required.";
                valid = false;
        }
        if ( document.contact_form.county.value == "" )
        {
                alerttxt += "\nCounty is required.";
                valid = false;
        }
        if ( document.contact_form.postalcode.value == "" )
        {
                alerttxt += "\nPostal Code is required.";
                valid = false;
        }
		if ( document.contact_form.country.value == "" )
        {
                alerttxt += "\nCountry is required.";
                valid = false;
        }
        if ( document.contact_form.phone.value == "" )
        {
                alerttxt += "\nPhone Number is required.";
                valid = false;
        }

		if (!valid)
		{
			alert (alerttxt);
		}
        

		return valid;
}
		//above script for Form validation.
//-->