var FormWindow,EditForm,RemoveForm,GenNewWindow;

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

}

function popupWindow(url) {
  myWindow = window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width=510,height=475,screenX=150,screenY=150,top=150,left=150');
  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 = 280, height = 330, scrollbars, resizable');
var newContent="<IMG SRC=" + ProductImage + ">";
    MyWindow.document.write(newContent);
	MyWindow.document.close(); //to close the stream
    MyWindow.focus();   
} 


 function openWindowNew3(PageURL) {
    MyWindow = window.open(PageURL,"", 'width = 280, height = 330, scrollbars, resizable');
    MyWindow.focus();   
} 

 function openWindowNew2(PageURL) {
    MyWindow = window.open(PageURL,"", 'width = 480, height = 330, 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 openGenNewWindow(PageURL) {
   if (!GenNewWindow || GenNewWindow.closed){
      GenNewWindow = window.open(PageURL,"", 'width = 480, height = 330, 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 openEditForm(PageURL) {
 if (!EditForm || EditForm.closed){   
     EditForm = window.open(PageURL,"", 'width = 480, height = 330, scrollbars, resizable');
     EditForm.focus(); }
    else{EditForm.focus();
      }  
} 

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



//The following is for medium size
 function openWindowProduct2(ProductImage) {
    MyWindow = window.open("","", 'width = 380, height = 330, scrollbars, resizable');
var newContent="<IMG SRC=" + ProductImage + ">";
    MyWindow.document.write(newContent);
	MyWindow.document.close(); //to close the stream
    MyWindow.focus();   
} 

//The following is for large size window
 function openWindowProduct3(ProductImage) {
    MyWindow = window.open("","", 'width = 540, height = 330, scrollbars, resizable');
var newContent="<IMG SRC=" + ProductImage + ">";
    MyWindow.document.write(newContent);
	MyWindow.document.close(); //to close the stream
    MyWindow.focus();   
} 

function doRollover(field){
//use this to change to purple
 field.style.color="purple";
}
function doMouseOut(field){
//use this to return to blue
  field.style.color="blue";
}

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

function doRollover2(field){
//use this to change to red
 field.style.color="#99CCFF";
}
function doMouseOut2(field){
//use this to return to white
  field.style.color="white";
}
function doRollover3(field){
//use this to change to red
 field.style.color="663300";
}
function doMouseOut3(field){
//use this to return to black
  field.style.color="#000000";
}
function doRollover4(field){
//use this to change to blue
 field.style.color="blue";
}
function doMouseOut4(field){
//use this to return to brown
  field.style.color="#CC6600";
}
function doRollover5(field){
//use this to change to red
 field.style.color="ff9933";
}
function doMouseOut5(field){
//use this to return to yellow
  field.style.color="#ffff99";
}
function doRollover6(field){
//use this to change to red
 field.style.color="black";
}
function doMouseOut6(field){
//use this to return to yellow
  field.style.color="purple";
}
