function makeArray(n){
      this.length = n;
      for(var i = 1; i <= n; i++){
            this[i] = 0;
      }
      return this;
}
var orderNum = 0;
var order = new makeArray(500);                      
var nystax=0;
var finalSum=0;
var grandtotal=0;
var shipping=0;
var removei=0;

function dollars(money)
{
money = money + ""        
moneylen = money.length;
digitPos = money.indexOf(".");
   if(digitPos == -1)
{
money = money + "." +"00";
return money;
}
else
{
cents = money.substring(digitPos + 1, moneylen + 1);
if(cents.length == 1)
{
money = money + "0";
}
else if(cents.length > 2)
{
roundVal = cents.charAt(2);
if(roundVal  >= 5)
{
money = parseFloat(money) + .01
money = money + ""
money = money.substring(0,digitPos + 3)
}
else
{
money = money.substring(0,digitPos + 3)
}
}
}
return money;
}

function product (ordernumber,name,price){
	this.ordernumber = ordernumber;
        this.name = name;
        this.price = price;
}

function add(orderIndex){
	OrderNumber = prodID[orderIndex].ordernumber;
        productName = prodID[orderIndex].name;
        totalSum =prodID[orderIndex].price;
        totalQuantity = OrderNumber;
        store(orderIndex,totalSum,totalQuantity);
	       
}

function store(o,ts,tq){
            orderNum++;
           order[orderNum] = new cartGoods(o,ts,tq);
           showTotal = 0;
           for(var i = 1; i <= orderNum;i++){
                 showTotal += parseFloat(order[i].totSum);                
            }
             
	edit(orderNum);
}

function cartGoods(o,ts,tq){
	this.orderno = prodID[o].ordernumber;
         this.pname = prodID[o].name;
	 this.totSum = ts;
         this.totQ = tq;
	 this.price=prodID[o].price;
		
}


function addframe(orderIndex){

	OrderNumber = prodID[orderIndex].ordernumber;
        productName = prodID[orderIndex].name;
        totalSum =prodID[orderIndex].price;
        totalQuantity = 1;
        storeframe(orderIndex,totalSum,totalQuantity);
     
}

function storeframe(o,ts,tq){
            orderNum++;
           order[orderNum] = new cartGoodsframe(o,ts,tq);
           showTotal = 0;
           for(var i = 1; i <= orderNum;i++){
                 showTotal += parseFloat(order[i].totSum);                
            }
             
	edit(orderNum);
}

function cartGoodsframe(o,ts,tq){
	this.orderno = prodID[o].ordernumber;
        	this.pname = prodID[o].name + " ...Size = " + parent.frames[0].document.forms[0].height.value + " X " + parent.frames[0].document.forms[0].width.value;
        this.price=parent.frames[0].document.forms[0].total.value;
 this.totSum = parent.frames[0].document.forms[0].total.value;
         this.totQ = tq;
	 

}

function view(){
          vWin = parent.frames[0].document;
           vWin.open();
         vWin.write("<HTML><BODY background='gifs/sky.gif' text=Black><CENTER>");
       if(orderNum != 0){
         vWin.write("<FONT COLOR='navy' FACE='Arial' Size=5>" + "Your Shopping Basket Contents</FONT><P>");
         vWin.write("<FORM><TABLE BORDER=1>");
         vWin.write("<TH BGCOLOR='gold'><FONT COLOR='black' Size=3>Quantity</FONT></TH>");
         vWin.write("<TH BGCOLOR='gold'><FONT COLOR='black' Size=3>Product</FONT></TH>");
vWin.write("<TH BGCOLOR='gold'><FONT COLOR='black' Size=3>Unit Price</FONT></TH>");
         vWin.write("<TH BGCOLOR='gold'><FONT COLOR='black' Size=3>Total Price</FONT></TH>");
         vWin.write("<TH BGCOLOR='gold'><FONT face='Arial' size=3 COLOR='black'>Edit</FONT></TH><TR>");
         for(var i = 1; i <= orderNum; i++){
	var price=order[i].price;
         vWin.write("<TD align='center' BGCOLOR='#00ffff'><FONT COLOR='black' face='Arial' Size=2>"+order[i].totQ+"</FONT></TD>");
         vWin.write("<TD  align='center' BGCOLOR='#00ffff'><FONT COLOR='black' face='Arial' Size=2>"+order[i].pname+"</FONT></TD>");
vWin.write("<TD  align='center' BGCOLOR='#00ffff'><FONT COLOR='black' face='Arial' Size=2>$"+dollars(price)+"</FONT></TD>");
         vWin.write("<TD align='center' BGCOLOR='#00ffff'><FONT COLOR='black' face='Arial' Size=2>$"+dollars(order[i].totSum)+"</FONT></TD>");
         vWin.write("<TD valign='TOP' align='center' BGCOLOR='#00ffff'><input type='checkbox' Name=checkbox"+i+" onclick=parent.edit("+i+")></Font>");
         vWin.write("<FONT COLOR='black' face='Arial' Size=1><b>To Edit check the checkbox</b></FONT></TD></TR>");
         }

      }else{
     vWin.write("<FONT SIZE = 5 FACE = 'arial'><br>" + "<br>Your shopping cart is empty!</FONT>");

   }
       vWin.write("</TABLE></FONT></FORM><center>If you just edited your shopping cart you may have to click the view cart button to see your changes!<br><A HREF=javascript:history.back()>Back</A> | ");
vWin.write("<A HREF='javascript:parent.checkOut()'>Checkout</A> | <a href='farnsworth.html'>Home</a></p></center></BODY></HTML>"); 
         vWin.close();
}

function remove(item){
       var newSum = 0;
       for(var i = item+1; i <= orderNum; i++){
          if(item == orderNum){
                   order[i].pname = "";
                   order[i].totSum = 0 ;
                   order[i].totQ = "";
		   order[i].price = "";
                   break;
          }else{
                   order[i-1].pname = order[i].pname;
                   order[i-1].totSum = order[i].totSum;
                   order[i-1].totQ = order[i].totQ;
		   order[i-1].price = order[i].price;
          }
      }
      orderNum--;
      for(var i = 1; i <= orderNum;i++){
          newSum += parseFloat(order[i].totSum);
      }
      
	removei=1;
      parent.frames[0].location='javascript:parent.view()';
}

function checknumeric(form) {
for (var i=0; i < (parent.frames[0].document.forms[0].quantity.value.length); i++) {
var checkvalue = parent.frames[0].document.forms[0].quantity.value.substring (i, i+1);
if ((checkvalue < "0") || ("9" < checkvalue)) {
alert ("This field requires only numbers!");
parent.frames[0].document.forms[0].quantity.value=1;
break
return false;
}
}
return true;
}

function edit(item){
var i=item
	var price=order[i].price;
order[i].totSum=dollars(price * (order[i].totQ));
          eWin = parent.frames[0].document;
           eWin.open();
         eWin.write("<HTML><BODY background='gifs/paper.gif' text=Black><CENTER>");
       if(orderNum != 0){
	var i=item
	var price=order[i].price;
	
	
eWin.write("<FONT COLOR='navy' FACE='Arial' Size=4>You may Approve or Remove this Order.</FONT><P>");
         eWin.write("<FONT COLOR='navy' FACE='Arial' Size=4>" + "Edit the "+order[i].pname+" Order</FONT><P>");
         eWin.write("<FORM onSubmit='return false;'><TABLE BORDER=1>");
         eWin.write("<TH BGCOLOR='gold'><FONT COLOR='black' Size=3>Quantity</FONT></TH>");
         eWin.write("<TH BGCOLOR='gold'><FONT COLOR='black' Size=3>Product</FONT></TH>");
eWin.write("<TH BGCOLOR='gold'><FONT COLOR='black' Size=3>Unit Price</FONT></TH>");
         eWin.write("<TH BGCOLOR='gold'><FONT COLOR='black' Size=3>Total Price</FONT></TH>");
         eWin.write("<TH BGCOLOR='gold'><FONT face='Arial' size=3 COLOR='black'>Remove</FONT></TH></TR><TR>");
         
         eWin.write("<TD align='center' BGCOLOR='#00ffff'>"+order[i].totQ+"</FONT></TD>");
         eWin.write("<TD align='center' BGCOLOR='#00ffff'><FONT COLOR='black' face='Arial' Size=2>"+order[i].pname+"</FONT></TD>");
 eWin.write("<TD align='center' BGCOLOR='#00ffff'><FONT COLOR='black' face='Arial' Size=2>$"+dollars(price)+"</FONT></TD>");
         eWin.write("<TD align='center' BGCOLOR='#00ffff'><FONT COLOR='black' face='Arial' Size=2>$"+dollars(order[i].totSum)+"</FONT></TD>");
         eWin.write("<TD valign='TOP' align='center' BGCOLOR='#00ffff'><input type='checkbox' Name=checkbox"+i+" onClick=parent.remove("+i+")></Font>");
         eWin.write("<FONT COLOR='black' face='Arial' Size=1><b>To remove check the checkbox</b></FONT></TD></TR>");
         
      eWin.write("</TABLE><br><center><INPUT TYPE = 'button' VALUE = 'OK'> <center></FORM>");
      }else{
     eWin.write("<FONT SIZE = 5 FACE = 'arial'><br>" + "<br>Your shopping cart is empty!</FONT>");

   }
       eWin.write("</TABLE></FONT></FORM><center><A HREF=javascript:history.back()>Back</A> | ");
	eWin.write("<A HREF='javascript:parent.checkOut()'>Checkout</A> | <a href='farnsworth.html'>Home</a></p></center></BODY></HTML>");
      eWin.close();

}

function changeq(item){
	var newSum=0;
	var x=item;
	var price=order[x].price;	        		order[x].totQ=parent.frames[0].document.forms[0].quantity.value;
	if ((order[x].totQ) < 1){
	parent.remove(x);
	}else{
	order[x].totSum=dollars(price * (order[x].totQ));
	parent.frames[0].document.forms[0].esubtotal.value=order[x].totSum;
	for(var i = 1; i <= orderNum;i++){
          newSum += parseFloat(order[i].totSum);
      }
      
      
}	
}

function shippingc(){

shipping =eval(.08 * parseFloat(finalSum));
if (shipping<10){
shipping=10;
} 

return shipping;
}

function salestax(form){
if ("New_York"==form.state.options[form.state.selectedIndex].value){
alert("Adding New York Sales Tax");
nystax =eval(.0825 * parseFloat(finalSum));
form.nysalestax.value = dollars(nystax);
grandtotal = parseFloat(nystax) + parseFloat(finalSum) + parseFloat(shipping);
form.totalsum.value = dollars(grandtotal);
}else{
form.nysalestax.value = 0
nystax=form.nysalestax.value;
grandtotal = parseFloat(nystax) + parseFloat(finalSum) + parseFloat(shipping);
form.totalsum.value = dollars(grandtotal);
}
return nystax;
}

function change(){
alert("Can Not Edit this Field - Edit from View Cart");
if (navigator.appName == "Netscape") {
  parent.frames[0].location.href='javascript:parent.view()';
}else{
  parent.frames[0].location='javascript:parent.view()';
}
}

function checkforms(){
if (parent.frames[0].document.forms[0].orderee.value == ""){
alert("Please Enter your Name");
parent.frames[0].document.forms[0].orderee.focus();
return false;
}
if (parent.frames[0].document.forms[0].address.value == ""){
alert("Please Enter your Address");
parent.frames[0].document.forms[0].address.focus();
return false;
}
if (parent.frames[0].document.forms[0].city.value == ""){
alert("Please Enter your City");
parent.frames[0].document.forms[0].city.focus();
return false;
}
if ((parent.frames[0].document.forms[0].country.value == "") && (parent.frames[0].document.forms[0].state.options[parent.frames[0].document.forms[0].state.selectedIndex].value=="NONE")){
alert("Please Enter your Country or State");
parent.frames[0].document.forms[0].state.focus();
return false;
}
if ((parent.frames[0].document.forms[0].zip.value == "") && (parent.frames[0].document.forms[0].state.options[parent.frames[0].document.forms[0].state.selectedIndex].value != "NONE")){
alert("Please Enter your Zip Code");
parent.frames[0].document.forms[0].zip.focus();
return false;
}else{
if (parent.frames[0].document.forms[0].zip.value != ""){
var valid = "0123456789-";
var hyphencount = 0;
var zipvar=parent.frames[0].document.forms[0].zip.value;
if (zipvar.length!=5 && zipvar.length!=10) {
alert("Please enter your 5 digit or 5 digit+4 zip code.");
parent.frames[0].document.forms[0].zip.focus();
return false;
}
for (var i=0; i < zipvar.length; i++) {
temp = "" + zipvar.substring(i, i+1);
if (temp == "-") hyphencount++;
if (valid.indexOf(temp) == "-1") {
alert("Invalid characters in your zip code.  Please try again.");
parent.frames[0].document.forms[0].zip.focus();
return false;
}
}
if ((hyphencount > 1) || ((zipvar.length==10) && ""+zipvar.charAt(5)!="-")) {
alert("The hyphen character should be used with a properly formatted 5 digit+four zip code, like '12345-6789'.   Please try again.");
parent.frames[0].document.forms[0].zip.focus();
return false;
}
}
}
if (parent.frames[0].document.forms[0].email.value == "") {
alert ("\n The E-Mail field is blank. \n\n Please enter your E-Mail address.")
parent.frames[0].document.forms[0].email.focus();
return false;
}
if (parent.frames[0].document.forms[0].email.value.indexOf ('@',0) == -1 ||
parent.frames[0].document.forms[0].email.value.indexOf ('.',0) == -1) {
alert ("\n The E-Mail field requires a \"@\" and a \".\"be used. \n\nPlease re-enter your E-Mail address.")
parent.frames[0].document.forms[0].email.focus();
return false;
}
return true;
}

function checkOut(){
        if(orderNum != 0){
nystax=0;
finalSum=0;
grandtotal=0;
shipping=0;

        cWin = parent.frames[0].document;
        cWin.open();
        cWin.write("<HTML><BODY background='gifs/paper.gif'><Center>");
        cWin.write("<center><Font COLOR=Blue Face='Arial' Size=5>Your Farnsworth Printing Shopping Basket</Font></center><Table border=1><tr>");
         cWin.write("<TH COLSPAN=1 BGCOLOR='gold'><FONT COLOR='black'>Quantity</FONT></TH>");

         cWin.write("<TH COLSPAN=1 BGCOLOR='gold'><FONT COLOR='black'>Product</FONT></TH>");
         cWin.write("<TH COLSPAN=1 BGCOLOR='gold'><FONT COLOR='black'>Price</FONT></TH>");
         cWin.write("<TH COLSPAN=1 BGCOLOR='gold'><FONT COLOR='black'>Total Price</FONT></TH></TR>");

orderdes="";
         for(var i = 1; i <= orderNum; i++){
         cWin.write("<TD COLSPAN=1 align=center BGCOLOR='#00ffff'><FONT COLOR='black' face='Arial' Size=2>"+order[i].totQ+"</FONT></TD>");
orderdes=orderdes+order[i].totQ+" ";
         cWin.write("<TD COLSPAN=1 align=center BGCOLOR='#00ffff'><FONT COLOR='black' face='Arial' Size=2>"+order[i].pname+"</FONT></TD>");
orderdes=orderdes+order[i].pname+" ";
         cWin.write("<TD COLSPAN=1 align=center BGCOLOR='#00ffff'><FONT COLOR='black' face='Arial' Size=2>"+parent.dollars(order[i].totSum/order[i].totQ)+"</FONT></TD>");
         cWin.write("<TD COLSPAN=1 align=center BGCOLOR='#00ffff'><FONT COLOR='black' face='Arial' Size=2>"+parent.dollars(order[i].totSum)+"</FONT></TD></TR>");
                   finalSum += parseFloat(order[i].totSum);
orderdes=orderdes+" at $"+parent.dollars(order[i].totSum)+" - "; 
         }

	finalSum = dollars(finalSum);
	shippingc();//calculate shipping charges
        shipping=dollars(shipping);
	grandtotal = parseFloat(shipping) + parseFloat(finalSum);  
	grandtotal = dollars(grandtotal);

          cWin.write("<TR><TD COLSPAN=3 ALIGN=CENTER bgcolor='#f7efde'><b>Total:</b></TD>");
     cWin.write("<TD COLSPAN=1 ALIGN=CENTER bgcolor='#f7efde'><b>$ " + finalSum + " </b></TD>");
                  cWin.write("</TR></TABLE></CENTER>");

//CHANGE YOUR E-MAIL HERE! 
 cWin.write("<FORM NAME='orderform' METHOD='GET'  ACTION='http://www.farnsprint.com/cgi-bin/FormMail.cgi' onSubmit='return parent.checkforms();'>");
  cWin.write("<input type='hidden' name='recipient' value='farns@dreamscape.com'>"); 
 cWin.write("<input type='hidden' name='subject' value='Fax/Email From Your Website '><input type='hidden' name='return_link_url' value='http://www.farnsprint.com/rcc.html'>");
 cWin.write("<input type='hidden'name='return_link_title' value='Continue'><input type='hidden' name='bgcolor' value='white'>");
cWin.write("<input type='hidden' name='title' value='Thank You'>");

if (!document.layers){
cWin.write("<div id='orderdescription' style='position:absolute; left:1px; top:-300px;'>");
}
	cWin.write("Product Description to be Submitted - Do Not Edit<br>");
         cWin.write("<TEXTAREA NAME='orderdescription' WRAP='soft' ROWS=2 COLS=70 onChange='parent.change()'>"+orderdes+"</TEXTAREA><br>");
if (!document.layers){
cWin.write("</div>");
}


cWin.write("If this is correct please fill out and submit the form below.<br>");
      cWin.write("If there is something you wish to change, click <A HREF='javascript:parent.view()'>View / Edit Shopping Cart</A> to make the changes.");

          cWin.write("<hr><TABLE>");
         cWin.write("<TR><TD align='right'>NAME:</TD><TD><INPUT TYPE = 'text' SIZE = 40 NAME = 'orderee'></TD></TR>");           
          cWin.write("<TR><TD align='right'>Street Address:</TD><TD><INPUT TYPE = 'text' SIZE = 40 NAME = 'address'></TD></TR>"); 
cWin.write("<TR><TD align='right'>Street Address 2:</TD><TD><INPUT TYPE = 'text' SIZE = 40 NAME = 'address2'></TD></TR>"); 
          cWin.write("<TR><TD align='right'>City:</TD><TD><INPUT TYPE = 'text' SIZE = 40 NAME = 'city'></TD></TR>"); 
          cWin.write("<TR><TD align='right'>State:</TD><TD>");
	cWin.write("<SELECT NAME='state' onChange='parent.salestax(this.form)'>");

	cWin.write("<OPTION SELECTED VALUE='NONE'></option>");
	cWin.write("<OPTION VALUE='NONE'>NONE</option>");
	cWin.write("<OPTION VALUE='Alabama'>Alabama</option>");
	cWin.write("<OPTION VALUE='Alaska'>Alaska</option>");
            cWin.write("<OPTION VALUE='Arizona'>Arizona</option>");
            cWin.write("<OPTION VALUE='Arkansas'>Arkansas</option>");
            cWin.write("<OPTION VALUE='California'>California</option>");
            cWin.write("<OPTION VALUE='Colorado'>Colorado</option>");
            cWin.write("<OPTION VALUE='Connecticut'>Connecticut</option>");
            cWin.write("<OPTION VALUE='Delaware'>Delaware</option>");
            cWin.write("<OPTION VALUE='Florida'>Florida</option>");
            cWin.write("<OPTION VALUE='Georgia'>Georgia</option>");
            cWin.write("<OPTION VALUE='Hawaii'>Hawaii</option>");
            cWin.write("<OPTION VALUE='Idaho'>Idaho</option>");
            cWin.write("<OPTION VALUE='Illinois'>Illinois</option>");
            cWin.write("<OPTION VALUE='Indiana'>Indiana</option>");
            cWin.write("<OPTION VALUE='Iowa'>Iowa</option>");
            cWin.write("<OPTION VALUE='Kansas'>Kansas</option>");
            cWin.write("<OPTION VALUE='Kentucky'>Kentucky</option>");
            cWin.write("<OPTION VALUE='Louisiana'>Louisiana</option>");
            cWin.write("<OPTION VALUE='Maine'>Maine</option>");
            cWin.write("<OPTION VALUE='Maryland'>Maryland</option>");
            cWin.write("<OPTION VALUE='Massachusetts'>Massachusetts</option>");
            cWin.write("<OPTION VALUE='Michigan'>Michigan</option>");
            cWin.write("<OPTION VALUE='Minnesota'>Minnesota</option>");
            cWin.write("<OPTION VALUE='Mississippi'>Mississippi</option>");
            cWin.write("<OPTION VALUE='Missouri'>Missouri</option>");
            cWin.write("<OPTION VALUE='Montana'>Montana</option>");
            cWin.write("<OPTION VALUE='Nebraska'>Nebraska</option>");
            cWin.write("<OPTION VALUE='Nevada'>Nevada</option>");
            cWin.write("<OPTION VALUE='New_Hampshire'>New Hampshire</option>");
            cWin.write("<OPTION VALUE='New_Jersey'>New Jersey</option>");
            cWin.write("<OPTION VALUE='New_Mexico'>New Mexico</option>");
            cWin.write("<OPTION VALUE='New_York'>New York</option>");
            cWin.write("<OPTION VALUE='North_Carolina'>North Carolina</option>");
            cWin.write("<OPTION VALUE='North_Dakota'>North Dakota</option>");
            cWin.write("<OPTION VALUE='Ohio'>Ohio</option>");
            cWin.write("<OPTION VALUE='Oklahoma'>Oklahoma</option>");
            cWin.write("<OPTION VALUE='Oregon'>Oregon</option>");
            cWin.write("<OPTION VALUE='Pennsylvania'>Pennsylvania</option>");
            cWin.write("<OPTION VALUE='Rhode_Island'>Rhode Island</option>");
            cWin.write("<OPTION VALUE='South_Carolina'>South Carolina</option>");
            cWin.write("<OPTION VALUE='South_Dakota'>South Dakota</option>");
            cWin.write("<OPTION VALUE='Tennessee'>Tennessee</option>");
            cWin.write("<OPTION VALUE='Texas'>Texas</option>");
            cWin.write("<OPTION VALUE='Utah'>Utah</option>");
            cWin.write("<OPTION VALUE='Vermont'>Vermont</option>");
            cWin.write("<OPTION VALUE='Virginia'>Virginia</option>");
            cWin.write("<OPTION VALUE='Washington'>Washington</option>");
            cWin.write("<OPTION VALUE='District_of_Columbia'>District of Columbia</option>");
            cWin.write("<OPTION VALUE='West_Virginia'>West Virginia</option>");
            cWin.write("<OPTION VALUE='Wisconsin'>Wisconsin</option>");
            cWin.write("<OPTION VALUE='Wyoming'>Wyoming</option>");
           cWin.write("</SELECT></TD></TR>");

          cWin.write("<TR><TD align='right'>Zip Code:</TD><TD><INPUT TYPE = 'text' SIZE =10 NAME = 'zip'></TD></TR>");
cWin.write("<TR><TD align='right'>Country (If outside US):</TD><TD><INPUT TYPE='text' SIZE=30 NAME='country'></TD></TR>"); 
 cWin.write("<TR><TD align='right'>Email:</TD><TD><INPUT TYPE='text' SIZE=30 NAME='email'></TD></TR>"); 
          cWin.write("<TR><TD align='right'>Telephone (optional):</TD><TD><INPUT TYPE = 'text' SIZE = 30 NAME = 'phone'></TD></TR>");
 
cWin.write("<TR><TD align='right'>Comments (optional):</TD><TD><TEXTAREA NAME='comments' WRAP='soft' ROWS=4 COLS=40></TEXTAREA></TD></TR></TABLE><hr>"); 
          
          cWin.write("<TABLE><TR><TD align='right'>Purchase Total = $</TD><TD><INPUT TYPE = 'text' SIZE = 15 NAME = 'finalTotal' VALUE="+ finalSum +" onChange='parent.change()'></TD></TR>");

cWin.write("<TR><TD align='right'>Shipping Charge = $</TD><TD><INPUT TYPE = 'text' SIZE = 15 NAME = 'shippingcharge' VALUE="+ shipping +" onChange='parent.change()'></TD></TR>");


	cWin.write("<TR><TD align='right'>NYS Sales TAX at 8.25% = $</TD><TD><INPUT TYPE = 'text' SIZE = 15 NAME = 'nysalestax' VALUE="+ nystax +" onChange='parent.change()'></TD></TR>");
	cWin.write("<TR><TD align='right'>Total Sum = $</TD><TD><INPUT TYPE = 'text' SIZE = 15 NAME = 'totalsum' VALUE="+ grandtotal +" onChange='parent.change()'></TD></TR></TABLE>");
cWin.write("Outside Contenental US requires an additional Shipping Charge!<br>For additional information Email us ");
cWin.write("at <a href='mailto:farns@dreamscape.com'>farns@dreamscape.com</a>");
          cWin.write("<p align='center'><b><font color='navy' size=4>To continue with your Order</font><font color='navy' size=4>, please press the continue button.</FONT></b></p>");
         
          cWin.write("<P><CENTER><INPUT TYPE = 'submit' VALUE = 'Continue'>");
          cWin.write("&nbsp;&nbsp;<INPUT TYPE = 'reset' VALUE = 'Reset'>");
          cWin.write("</FORM>");
          cWin.write("</b></FONT><p></CENTER></P></BODY></HTML>");
          cWin.close();
      }else{
         alert("Your shopping cart is empty!");
      }
    }

