function checkform(myform){
var mybool = true;

    if( (document.getElementById('selectState').value == '') && (document.getElementById('zip').value == '') )
    {
        alert('You must select a state or zip');
        mybool = false;
        return false;
    }
    if(mybool){
    this.submit();
    }
}

/* -- Adobe GoLive JavaScript Library */
function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}

function changeImagesArray(array) {
	if (preloadFlag == true) {
		var d = document; var img;
		for (var i=0; i<array.length; i+=2) {
			img = null; var n = array[i];
			if (d.images) {img = d.images[n];}
			if (!img && d.getElementById) {img = d.getElementById(n);}
			if (img) {img.src = array[i+1];}
		}
	}
}

function changeImages() {
	changeImagesArray(changeImages.arguments);
}

function popWindow(url, name, width, height) {
	var x = (screen.width - width)/2;
	var y = (screen.height - height)/2;
    var opts = 'height=' + height + ',width=' + width + ",screenX=" + x + ",left=" + x + ",screenY=" + y + ",top=" + y + ',location=no,scrollbars=yes,menubar=no,resizable=yes,status=no,toolbar=no';

    var newWindow = window.open(url, name, opts);
    newWindow.focus();

} 