function validateContactForm(pForm)
{
	var bValid;
	bValid = true;

	if (pForm.Name.value=='')
	{
		alert('You must enter a name.');
		bValid = false;
	}

	if ((bValid) && (pForm.EmailxxxAddress.value=='') && (pForm.Address.value=='') && (pForm.PhonexxxNumber.value=='') && (pForm.Mobile.value==''))
	{
		alert('You must enter either either your address, phone number or an email address.');
		bValid = false;
	}
	else if ((bValid) && (pForm.EmailxxxAddress.value!=''))
	{
		if (validEmail(pForm.EmailxxxAddress.value))
		{
			bValid = true;
		}
		else
		{
			bValid = false;
		}
	}

	if ((bValid) && (pForm.Comments.value==''))
	{
		alert('You must enter some comments.');
		bValid = false;
	}

	return bValid;
};

function winPop(pageToLoad, winName, width, height, center, scroll)
{
    xposition=0; yposition=0;
    if ((parseInt(navigator.appVersion) >= 4 ) && (center))
    {
        xposition = (screen.width - width) / 2;
        yposition = (screen.height - height) / 2;
    }
    args = "width=" + width + ","
    + "height=" + height + ","
    + "location=0,"
    + "menubar=1,"
    + "resizable=1,"
    + "scrollbars="+scroll+", "
    + "status=0,"
    + "titlebar=0,"
    + "toolbar=0,"
    + "hotkeys=0,"
    + "screenx=" + xposition + ","  //NN Only
    + "screeny=" + yposition + ","  //NN Only
    + "left=" + xposition + ","     //IE Only
    + "top=" + yposition;           //IE Only

    window.open(pageToLoad,winName,args );
}