function cast( a,b,c ){
	window.open( a, b, c );
}
function ValidateP(f) {

	if (f.popmake.value == 'NOTHING') {
		alert('Please choose a manufacturer');
		f.popmake.focus();
		return false;
	}

	return true;
}
function ZipValidate(f)
	{
	var uzipcode = f.uzipcode
	var strZip = uzipcode.value

	if (AllTrim(strZip) == '') {
		alert('Please enter a value for the zip code.');
		uzipcode.focus();
		uzipcode.select();
		return false;
	}

	if (strZip.length < 5) {
		alert('Please enter 5 digits for the zip code.');
		uzipcode.focus();
		uzipcode.select();
		return false;
	}

	if (!IsInteger(strZip)) {
		alert('Please enter only digits (0 thru 9) for the zip code.');
		uzipcode.focus();
		uzipcode.select();
		return false;
	}

	if (strZip.substr(0,1) == '0') {

		if (parseInt(strZip.substr(1)) == 0) {
			alert(strZip + ' is not a valid zip code.');
			uzipcode.focus();
			uzipcode.select();
			return false;
		}

	} else {

		if (parseInt(strZip) == 0) {
			alert(strZip + ' is not a valid zip code.');
			uzipcode.focus();
			uzipcode.select();
			return false;
		}

	}

	return true;
}
function IsInteger(value) {
	return HasOnlyCharacters('0123456789',value);
}
function HasOnlyCharacters(valid,value) {
	var success = true ;
	var thevalue = AllTrim(value);
	var temp;
	for (var i=0; i<thevalue.length; i++) {
		temp = '' + thevalue.substring(i, i+1);
		if (valid.indexOf(temp) == -1) success = false ;
	}
	return success
}
function LTrim(value) {
	while(''+value.charAt(0)==' ')
		value=value.substring(1,value.length);
	return value;
}

function RTrim(value) {
	while(''+value.charAt(value.length-1)==' ')
		value=value.substring(0,value.length-1);
	return value;
}

function AllTrim(value) {
	return LTrim(RTrim(value));
}