var FormWindow,EditForm,RemoveForm,GenNewWindow;

function DoTest(){
alert("this is a test");

}


function ShowProduct(ID) {

  var displayForm = "productForm.php?prodID=" + ID
    //alert("URL path is: " + displayForm);
   MyWindow = window.open(displayForm,"", 'width = 500, height = 500, scrollbars, toolbar, resizable');
	MyWindow.focus();   
	
	
} 
/*
 function DisplayProduct(ProductName,
                         Size1,Color1,Price1,
						 Size2,Color2,Price2,
						 Size3,Color3,Price3,
						 Size4,Color4,Price4,
						 ColorKey,SizeKey,
						 ProductSRC) {
    MyWindow = window.open("testproductform.cfm.htm","", 'width = 250, height = 225, scrollbars=false, toolbar=false,status=false, resizable=false');
    //Assignment of passed values to form -"ProductForm"- fields.
	MyWindow.txtProductName = ProductName;
	Document.product_img.src=ProductSRC;
	  //  '01_products/01_images/1801-bigx687.jpg'
	  //  	MyWindow.ProductForm.txtProductName = ProductName;

	MyWindow.focus();   
} 
*/

 function openWindow_banner(htm_file) {
    MyWindow = window.open(htm_file,"", 'width = 250, height = 225, scrollbars=false, toolbar=false,status=false, resizable=false');
    MyWindow.focus();   
} 


 function openWindowProduct(ProductImage) {
    MyWindow = window.open("","", 'width = 440, height = 470, scrollbars, resizable');
var newContent="<IMG SRC=" + ProductImage + ">";
    MyWindow.document.write(newContent);
	MyWindow.document.close(); //to close the stream
    MyWindow.focus();   
} 


 function openWindowNew2(PageURL) {
    MyWindow = window.open(PageURL,"", 'width = 300, height = 230, scrollbars, resizable');
    MyWindow.focus();   
} 


 function openWindowForm(PageURL) {
 if (!FormWindow || FormWindow.closed){   
     FormWindow = window.open(PageURL,"", 'width = 480, height = 330, scrollbars, resizable');
     FormWindow.focus(); }
    else{FormWindow.focus();
      }  
} 

 function openWindow3(PageURL) {
 if (!FormWindow || FormWindow.closed){   
     FormWindow = window.open(PageURL,"", 'width = 300, height = 230, scrollbars, resizable, alwaysRaised');
     FormWindow.focus(); }
    else{
	 FormWindow.focus();
	 FormWindow.focus();
      }  
} 
 function openGenNewWindow(PageURL) {
   if (!GenNewWindow || GenNewWindow.closed){
      GenNewWindow = window.open(PageURL,"", 'width = 300, height = 230, scrollbars, resizable');
      GenNewWindow.focus();
      GenNewWindow.focus();}
   else {
      if (GenNewWindow.location.href==PageURL){
       GenNewWindow.focus();
       GenNewWindow.focus();}
      else {
        GenNewWindow.location.href=PageURL;
        GenNewWindow.focus();
        GenNewWindow.focus();
      } 
   }  
} 


 
function doRollovermenu(field){
//use this to change to blue
 field.style.color="#0033CC";
}
function doMouseOutmenu(field){
//use this to return to burgundy
  field.style.color="#660000";
}

 /*field.class=Teal;  field.class=Purple; */
function doRolloverTD(field){
//use this to change to Teal
 //alert("this is a test" + field.bgColor);
 field.src="01_products/01_images/8x8redsquare.gif";
}
function doMouseOutTD(field){
//use this to return to Purple
  field.bgColor="#660000";
  alert("this is a test" + field.bgColor); 
}


function doRollover1(field){
//use this to change to orange
 field.style.color="orange";
}
function doMouseOut1(field){
//use this to return to white
  field.style.color="white";
}

function doRollover2(field){
//use this to change to burgundy
 field.style.color="#660000";
}
function doMouseOut2(field){
//use this to return to blue
  field.style.color="blue";
}
