// JavaScript Document


<!--
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//-->

var newPopWindow 
function fOpenPopUp(mode)
{
    var strURL
    var strWidth
    var strHeight
    
    if (mode == "fonts"){
	   strURL = "../trailer_plate/font_pop.asp"
	   strWidth = "537"
	   strHeight = "600"	   
    }
    
    if (mode == "colors"){
	   strURL = "../trailer_plate/color_pop.asp"
	   strWidth = "540"
	   strHeight = "550"
    }
   
    if (mode == "logo"){
	   strURL = "../trailer_plate/stocklogos_pop.asp"
	   strWidth = "540"
	   strHeight = "600"
        
    }
	if (mode == "vinyl"){
	   strURL = "../trailer_plate/vinyl_pop.asp"
	   strWidth = "540"
	   strHeight = "275"
    }
    
    if (mode == "height"){
	   strURL = "../trailer_plate/height_pop.asp"
	   strWidth = "540"
	   strHeight = "600"
    }
    
    if (mode == "price"){
	   strURL = "../trailer_plate/price_pop.asp"
	   strWidth = "550"
	   strHeight = "600"
    }
    
    if (mode == "width"){
	   strURL = "../trailer_plate/stwidth_pop.asp"
	   strWidth = "550"
	   strHeight = "200"
    }
   
    if (mode == "fixedwidth"){
	   strURL = "../trailer_plate/fixwidth_pop.asp"
	   strWidth = "550"
	   strHeight = "250"
    }
    
     if (mode == "application"){
	   strURL = "../trailer_plate/application.htm"
	   strWidth = "550"
	   strHeight = "200"
    }
	if (mode == "effects"){
	   strURL = "../trailer_plate/effect_pop.asp"
	   strWidth = "540"
	   strHeight = "600"
    }
    
    if (!newPopWindow || newPopWindow.closed)
    {
         window.open(strURL, "newPopWindow", "scrollbars=1, HEIGHT=" + strHeight + ",resizable=yes,status=0, WIDTH="+strWidth);
         newPopWindow.resizeTo(strWidth,strHeight);
        newPopWindow.focus();
        newPopWindow.moveTo(100,100)
    }
    else
    {
		newPopWindow.close();
         window.open(strURL, "newPopWindow", "scrollbars=1, HEIGHT=" + strHeight + ",resizable=yes,status=0, WIDTH="+strWidth);
        newPopWindow.resizeTo(strWidth,strHeight);
        newPopWindow.focus();
        newPopWindow.moveTo(100,100)        
    }
}

<!--

function isDigit (c)
{
var strAllowed = "1234567890";
return (strAllowed.indexOf (c) != -1);
}
        function checkForm()
        {
                var d = document;
                var form = d.form1;
                var submitForm = false;
                var errMsg = "";
                
                //Required Fields Referencing.
                
        var FirstName = form.FIRSTNAME.value;
        var LastName = form.LASTNAME.value;
        var Address1 = form.ADDRESS1.value;
		var City = form.CITY.value;
        var State = form.STATE.value;
        var Zip = form.ZIP.value;
        var Email = form.EMAIL_ADDRESS.value;
		var ShippingChg = form.SHIP_CHARGE.value;
		var CardName = form.CCNAME.value;
		var DayPhone = form.DAY_PHONE.value;
		var CardNumber = form.CCN.value;
		var CardDate = form.CCDATE.value;
		               
                if ((FirstName == "") && (LastName == "") && (Address1 == "") && (City == "") && (State == "") && (Zip == "") && (Email == "") && (ShippingChg == "$0.00") && (CardName == "") && (DayPhone == "") && (CardNumber == "") && (CardDate == ""))
                {
                        errMsg += "Please Fill Out The Order Form.";
                }
                else
                {
                        if (FirstName == "")
                        {
                                errMsg += "First Name is Required.\n";
                        }
                        
                        if (LastName == "")
                        {
                                errMsg += "Last Name is Required.\n";
                        }
                        
                        if (Address1 == "")
                        {
                                errMsg += "Address is Required.\n";
                        }
                        
                        if (City == "")
                        {
                                errMsg += "City is Required.\n";
                        }
                        
                        if (State == "")
                        {
                                errMsg += "State is Required.\n";
                        }
                        
                        if (Zip == "")
                        {
                                errMsg += "Zip Code is Required.\n";
                        }
                        else
                        {
                                if (isNaN(Zip))
                                {
                                        errMsg += "Zip Code Must be a Number.\n";
                                }
                                else if (Zip.length < 5)
                                {
                                        errMsg += "Zip Code Must be 5 Characters.\n";
                                }
                        }
                        
                        if (Email == "")
                        {
                                errMsg += "Email Address is Required.\n";
                        }
                        else
                        {
                                if (Email.indexOf("@") == -1 || Email.indexOf(".") == -1)
                                {
                                        errMsg += "Email Address is Invalid.\n";
                                }
                        }
						
			if (ShippingChg == "$0.00")
			{
				errMsg += "A Shipping Method is required.\n";
			}
						
			if (CardName == "")
			{
				errMsg += "Please enter the name that appears on your credit card.\n";
			}
						
			if (DayPhone == "")
			{
				errMsg += "Please enter your daytime telephone number.\n";
			}
						
			if (CardNumber == "")
			{
				errMsg += "Please enter your credit card account number.\n";
			}
			else
			{
				for (n = CardNumber.length - 1; n >= 0; n--) 
                {
                   var cDigit = CardNumber.charAt (n);
                   if(isDigit(cDigit)){                  
                     if(cDigit == '' || cDigit == '.' || cDigit == '-')
                     {
                      errMsg += "Credit card is invalid.No dashes or spaces.\n";
                      break;
                     }
                   }
                   else
                   {
                     errMsg += "Credit card is invalid.No dashes or spaces.\n";
                     break;
                   }
                }
            }
						
			if (CardDate == "")
			{
				errMsg += "Please enter the expiration date of your credit card.\n";
			}

			    }
                
                if (errMsg != "")
                {
                        alert(errMsg);
                }
                else
                {
                        submitForm = true;
                }
                
                return submitForm;
        }
        //-->