function copyright() {
	document.write('TM & © 2004 Warner Bros. Entertainment Inc. All rights reserved.<br><a href="http://www2.warnerbros.com/main/privacy/privacy.html?frompage=redneckyard" target="_blank">Privacy Policy</a> | <a href="http://www2.warnerbros.com/main/privacy/terms.html?frompage=redneckyard" target="_blank">Terms of Use</a>');
}

function pop(url,specs) {
	/* Custom Browser Attributes:
	width	number
	height	number
	* the default to these yes|no ones, is no *
	directories	yes | no (or 1 | 0)
	location	yes | no (or 1 | 0)
	menubar		yes | no (or 1 | 0)
	resizable	yes | no (or 1 | 0)
	scrollbars	yes | no (or 1 | 0)
	status		yes | no (or 1 | 0)
	toolbar		yes | no (or 1 | 0)
	*browser specific*
	screenX (NN4+)	number
	screenY (NN4+)	number
	left (IE4+)		number
	top	(IE4+)		number
	fullscreen (IE4+)	yes | no (or 1 | 0)
	*/
	window.open(url, "_blank", specs);
}

function validate(f){
	// ** make sure all fields are filled in **
	for (var i = 0; i < f.length - 1; i++){
		if (i != 7){
			if (f[i].value == ""){
				alert("Please fill in all form fields.");
				return false;
			}
		}
	}
	// ** check the email address field **
	if (!isGoodMailAddr(f.email.value)){
		alert("Your email address is not valid.");
		return false;
	}
	if (!isNumber(f.phone1.value,3) || !isNumber(f.phone2.value,3) || !isNumber(f.phone3.value,4)){
		alert("Your phone number is not valid.");
		return false;
	}
	if (!isNumber(f.zip.value,5)){
		alert("Your zip code is not valid.");
		return false;
	}
}
function isGoodMailAddr (addr) {
	var atsign = addr.indexOf("@");
	if (addr.indexOf(" ") >= 0) return false;
	if (atsign > 0) {
		var domainname = addr.substring(atsign+1);
		if (domainname.indexOf(".") > 0) return true;
	}
	return false;
}
function isNumber (field, number) {
	var currchar="";
	for (var i=0; i<field.length; i++) {
		currchar=field.substring(i,i+1)
		/* look for valid characters */
		if (!(currchar >= "0" && currchar <= "9")) {
			return false;
		} 
	}
	if (field.length < number) {
		return false;
	}
	return true;
}
function uploadValidate(f){
        if (f.file.value == ""){
                alert("Please select a file to upload");
                return false;
        }
        if (f.file.value.indexOf(".jpg") == 0){
                alert("The file you upload must be JPG format");
                return false;
        }
        return true;
}