function P0PuP(url)
{
popupwin = window.open(url,'P0PuP','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,copyhistory=yes,Width=285,height=175,screenX=400,screenY=350,top=350,left=400')
popupwin.focus();
}
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

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);

// Form button mouseover effects and form reset; not using submit function
// declare array
var Pic = new Array

// declare images
Pic[0] = 'pix/2_claro.gif'
Pic[1] = 'pix/2_claro-over.gif'
Pic[2] = 'pix/2_claro-over.gif'
Pic[3] = 'pix/2_submit.gif'
Pic[4] = 'pix/2_submit-over.gif'
Pic[5] = 'pix/2_submit-over.gif'

// array
var p = Pic.length
var preLoad = new Array()
var i = 0;
for (i = 0; i < p; i++){
     preLoad[i] = new Image()
     preLoad[i].src = Pic[i]
}

// swap-a-doodle
function switchImage(whichImage,imageNumber){
   document.images[whichImage].src = preLoad[imageNumber].src
}

// Submit function; not used currently

function doSubmit(){

   //window.location='http://www.test.com'
   validateForm(this,0,1,1,0)
   
   // call the alert box        
   alert(S)
   
   // optional -- but it gets the lines off the image in IE
   self.focus()
   
}

// Reset function

function doReset(R){

   // Alert Message
   // var R = "Do you wish to reset the form?\n"      

   // call the alert box           
   alert(R)

   // optional -- but it gets the lines off the image in IE
   self.focus()
   
   // Declare fields to be cleared
   
   document.comments.name.value = ""
   document.comments.country.value = ""
   document.comments.email.value = ""
   document.comments.quest.value = "" 
}

function MM_goToURL() { //v3.0
  var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}

if (window.Event)   
  document.captureEvents(Event.MOUSEUP);   
 function nocontextmenu()    
{  
 event.cancelBubble = true  
 event.returnValue = false;  
  return false;  
}  
 function norightclick(e)   
{  
 if (window.Event)   
 {  
  if (e.which == 2 || e.which == 3)  
   return false;  
 }  
 else  
  if (event.button == 2 || event.button == 3)  
  {  
   event.cancelBubble = true  
   event.returnValue = false;  
   return false;  
  }  
 }  

document.oncontextmenu = nocontextmenu;   
document.onmousedown = norightclick;