// script from : http://www.sitepoint.com

function Validate(f)
{
	if (f.zip.value == '' || isNaN(f.zip.value))
	{
		alert("Please enter your valid zip code.");
		f.zip.focus();
		return (false);
	}
}

function ValidateCountry(f)
{
	if (f.country.selectedIndex == 0)
	{
		alert("Please select a country.");
		f.country.focus();
		return (false);
	}
}



function externalLinks() {
	if (!document.getElementsByTagName) return;
	var anchors = document.getElementsByTagName("a");
	for (var i=0; i<anchors.length; i++) {
		var anchor = anchors[i];
		if (anchor.getAttribute("href") &&
			anchor.getAttribute("rel") == "external")
		anchor.target = "_blank";
	}
}


// onloads called for the page
function initscripts() {
	externalLinks();
}

window.onload = initscripts;
