<!--
function Validate_OrderSearch()
{
   if (document.DaForm.DaInBox.value.length == 0)
	{
		alert('You must enter something to search for to continue.');
		document.DaForm.DaInBox.focus();
		return(false);
	}
	return (true);
} 

function confirmAction() { 
return confirm ("If you are sure you want to DELETE, click OK...or...click CANCEL to stop deletion request!"); 
}

function displayPopup(url, height, width) {
properties = "toolbar=0,location=0,scrollbars=1,height=" + height;
properties = properties + ",width=" + width;
properties = properties + ",left=100,top=100";
popupHandle = open(url, "Upload_Image", properties);

}

var win=null;
function NewWindow(mypage,myname,w,h,scroll,pos){

	if(pos=="random"){
		LeftPosition=(screen.width)?Math.floor(Math.random()*((screen.width-w)-75)):100;
		TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
	if(pos=="center"){
		LeftPosition=(screen.width)?(screen.width-w)/2:100;
		TopPosition=(screen.height)?(screen.height-h)/2:100;}
	else if((pos!="center" && pos!="random") || pos==null){
		LeftPosition=0;
		TopPosition=20}

	settings='height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable';
	win=window.open(mypage,myname,settings);
	if(win.focus){win.focus();}}
	
	function Validate_Form()
{
	if (document.form.strContactPerson.value.length == 0)
	{
		alert('You must enter A CONTACT PERSON to continue.');
		document.form.strContactPerson.focus();
		return(false);
	}
	if (document.form.strPhoneNumber.value.length == 0)
	{
		alert('You must enter A PHONE NUMBER to continue.');
		document.form.strPhoneNumber.focus();
		return(false);
	}
	if (document.form.strEmailAddress.value.length == 0)
	{
		alert('You must enter AN E-MAIL ADDRESS to continue.');
		document.form.strEmailAddress.focus();
		return(false);
	}
	if (document.form.strRequest.value.length == 0)
	{
		alert('You must enter A REQUEST to continue.');
		document.form.strRequest.focus();
		return(false);
	}
	return (true);
} 


function Validate_CatRequest()
{

    if (document.catrequest.strContactPerson.value.length == 0)
	{
		alert('You must enter YOUR NAME to continue.');
		document.catrequest.strContactPerson.focus();
		return(false);
	}
	 if (document.catrequest.strAddress.value.length == 0)
	{
		alert('You must enter YOUR ADDRESS to continue.');
		document.catrequest.strAddress.focus();
		return(false);
	}
    if (document.catrequest.strCity.value.length == 0)
	{
		alert('You must enter YOUR CITY to continue.');
		document.catrequest.strCity.focus();
		return(false);
	}
	if (document.catrequest.strZip.value.length == 0)
	{
		alert('You must enter YOUR ZIP CODE to continue.');
		document.catrequest.strZip.focus();
		return(false);
	}
	
	
if (document.catrequest.strEmailAddress.value.length == 0 || document.catrequest.strEmailAddress.value.indexOf(".") == -1 || document.catrequest.strEmailAddress.value.indexOf("@") == -1)
	{
		alert('You must enter YOUR E-MAIL ADDRESS containing "@" and "." to continue.');
		document.catrequest.strEmailAddress.focus();
		return(false);
	}
	return (true);
} 


function Validate_Sub()
{
	if (document.form.strEmailAddress.value.length == 0)
	{
		alert('You must enter AN E-MAIL ADDRESS to continue.');
		document.form.strEmailAddress.focus();
		return(false);
	}
	return (true);
} 


function Validate_CheckoutForm()
{
	if (document.checkoutform.strFirst.value.length == 0)
	{
		alert('You must enter your first name to continue.');
		document.checkoutform.strFirst.focus();
		return(false);
	}
	if (document.checkoutform.strLast.value.length == 0)
	{
		alert('You must enter your last name to continue.');
		document.checkoutform.strLast.focus();
		return(false);
	}
	if (document.checkoutform.strEmail.value.length == 0 || document.checkoutform.strEmail.value.indexOf(".") == -1 || document.checkoutform.strEmail.value.indexOf("@") == -1)
	{
		alert('You must enter YOUR E-MAIL ADDRESS containing "@" and "." to continue.');
		document.checkoutform.strEmail.focus();
		return(false);
	}
	if (document.checkoutform.strAddress1.value.length == 0)
	{
		alert('You must enter your address to continue.');
		document.checkoutform.strAddress1.focus();
		return(false);
	}
	if (document.checkoutform.strCity.value.length == 0)
	{
		alert('You must enter your city to continue.');
		document.checkoutform.strCity.focus();
		return(false);
	}
	if (document.checkoutform.strPostalCode.value.length == 0)
	{
		alert('You must enter your zip code to continue.');
		document.checkoutform.strPostalCode.focus();
		return(false);
	}
	if (document.checkoutform.strCcNumber.value.length == 0)
	{
		alert('You must enter your credit card number to continue.');
		document.checkoutform.strCcNumber.focus();
		return(false);
	}
 if (document.checkoutform.expmonth.selectedIndex == 0) {
        alert('You must select your EXPIRATION MONTH to continue.');
		document.checkoutform.expmonth.style.background = "#FF0000";
		document.checkoutform.expmonth.focus();
		return(false);
    }
		if (document.checkoutform.expyear.selectedIndex == 0) {
        alert('You must select your EXPIRATION YEAR to continue.');
		document.checkoutform.expyear.style.background = "#FF0000";
		document.checkoutform.expyear.focus();
		return(false);
    }
   if (document.checkoutform.strNameOnCc.value.length == 0)
	{
		alert('You must enter the name that appears on the credit card to continue.');
		document.checkoutform.strNameOnCc.focus();
		return(false);
	}
   if (document.checkoutform.cvv2.value.length == 0)
	{
		alert('You must enter the 3 digit code from the back of your card (CVV2 Code) to continue.');
		document.checkoutform.cvv2.focus();
		return(false);
	}
	if (document.checkoutform.cvv2.value != document.checkoutform.cvv2a.value)
	{
		alert('Your 3 digit security code does not match.');
		document.checkoutform.cvv2a.style.background = "#FF0000";
		document.checkoutform.cvv2a.focus();
		return(false);
	}
	return (true);
} 
//-->










