function pricesPopup() {	var popupURL = 'http://ecohaul.com/popups/prices_popup.php';	var mywidth = 325;	var myheight = 325;	if(window.zip_popup) {		window.zip_popup.location=popupURL;		window.zip_popup.focus();	} else {		var zip_popup=window.open(popupURL,'zip_popup','top=7,screenY=7,left=7,screenX=7,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width='+mywidth+',height='+myheight);		if(navigator.appName.substring(0,8)=="Netscape" || navigator.appName=="Microsoft Internet Explorer") {			zip_popup.location=popupURL;			zip_popup.opener=self;		}		zip_popup.focus();	}}

function imageUploadPopup() {	var popupURL = './popups/image_upload.php';	var mywidth = 420;	var myheight = 375;	if(window.iu_popup) {		window.iu_popup.location=popupURL;		window.iu_popup.focus();	} else {		var iu_popup=window.open(popupURL,'iu_popup','top=7,screenY=7,left=7,screenX=7,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width='+mywidth+',height='+myheight);		if(navigator.appName.substring(0,8)=="Netscape" || navigator.appName=="Microsoft Internet Explorer") {			iu_popup.location=popupURL;			iu_popup.opener=self;		}		iu_popup.focus();	}}function PagePopup(popupURL) {	var mywidth = 700;	var myheight = 800;	if(window.popup) {		window.popup.location=popupURL;		window.popup.focus();	} else {		var popup=window.open(popupURL,'popup','top=7,screenY=7,left=7,screenX=7,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width='+mywidth+',height='+myheight);		if(navigator.appName.substring(0,8)=="Netscape" || navigator.appName=="Microsoft Internet Explorer") {			popup.location=popupURL;			popup.opener=self;		}		popup.focus();	}}function miniPopup(popupURL,mywidth,myheight) {	//var mywidth = 350;	//var myheight = 400;	if(window.popup) {		window.popup.location=popupURL;		window.popup.focus();	} else {		var popup=window.open(popupURL,'popup','top=7,screenY=7,left=7,screenX=7,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width='+mywidth+',height='+myheight);		if(navigator.appName.substring(0,8)=="Netscape" || navigator.appName=="Microsoft Internet Explorer") {			popup.location=popupURL;			popup.opener=self;		}		popup.focus();	}}

function IsFormComplete(FormName) {
	var x       = 0
	var length	    = document.forms[FormName].elements.length
	var FormOk  = true
	while ((x < document.forms[FormName].elements.length) && (FormOk)) {		if (document.forms[FormName].elements[x].value == '')  {  			alert('Oops.  It looks like one or more required fields are blank or invalid.\nPlease try again.')			document.forms[FormName].elements[x].focus()			FormOk = false 
		}		x ++	}	return FormOk}

function IsTellAFriendFormComplete(FormName) {
	var x       = 0
	var length	    = document.forms[FormName].elements.length
	var FormOk  = true
	while ((x < document.forms[FormName].elements.length) && (FormOk)) {		if ((document.forms[FormName].femail.value == '') || (document.forms[FormName].email.value == '')) {  			alert('Oops.  It looks like one or more required fields are blank or invalid.\nPlease try again.')			document.forms[FormName].elements[x].focus()			FormOk = false 
		}		x ++	}	return FormOk}

function IsCustImgUploadComplete(FormName) {
	var x       = 0
	var max	    = 3
	var FormOk  = true
	while ((x < document.forms[FormName].elements.length) && (FormOk)) {
		if ((document.forms[FormName].elements[x].value == '') && (x < 5)) {
			alert('Oops.  It looks like one or more required fields are blank or invalid...\nPlease try again.')			document.forms[FormName].elements[x].focus()			FormOk = false 
		}		x ++	}	return FormOk}
