<!-- //

//  THIS FILE CONTAINS THE FOLLOWING FUNCTIONS:

//



var ext = ".gif";

//  ROLL OVER IMAGE FUNCTION
function imageOver(imageName){

	document.images[imageName].src = imageDir + imageName + "_ov" + ext;
}

//  ROLL OFF IMAGE FUNCTION
function imageOff(imageName){
	document.images[imageName].src = imageDir + imageName + ext;
}






//  POP UP WINDOW FUNCTION
function windowOpener(what_url,winheight,winwidth) {
	options="toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width="+winwidth+",height="+winheight;

	popwin = window.open(what_url,'pop_win',options);
	popwin.focus();
}


///////////////////////////////////////////////////

function contentCheck(formName,obj){
//alert(obj);


	if ((obj&&formName)){		
				theVal = eval("document."+formName+"."+obj+".value");
				//alert(theVal);
						if (theVal==""){
						
						alert("Error: this feild is required!");
						return false;	
						}else{
						return true;	
						}
						
			}else{
				msg = "Have you entered some Content for this Page?\nTo ADD more content press \"Cancel\" or \"OK\" to Continue.\nPLEASE NOTE: Once you press the \"OK\" "+
				"Button, the Changes will Appear on your Site Immediately.\nSo, if you want to check the content Now, press the \"Cancel\" button.\n\nThank You!!";
				if (!confirm(msg)){
				return false;	
				}else{			
					return true;			
				}
		}			
} 
///////////////////////////////////////////////////////



function back(){
if (document.images) {
theone = theone-1;
if (theone == 0) {
theone=volume;
}
        document.images['setone'].src= changes[theone].src;
}
else{
alert('To view this page you need netscape 3+ or Explorer 4');
        }
}
function next(){
if (document.images) {
theone = theone+1;
if (theone > volume) {
        theone=1;
}
        document.images['setone'].src=changes[theone].src;
        }
else
{
alert('To view this page you need netscape 3+ or Explorer 4');
}
}



//  DROP DOWN MENU FUNCTION
function dropdown()
{
  pos=window.document.forms[0].menulist.selectedIndex;
  newpage=window.document.forms[0].menulist.options[pos].value; 
 
 //alert(newpage.indexOf('http://'));

  if (newpage.indexOf("Open")==0){
//  alert(eval(newpage));
  eval(newpage);
  }else if(newpage!= "" && newpage.indexOf('http://')== 0)
  {
     window.open(newpage); 
  }else if ( (newpage!= "") && (newpage.indexOf('http://')!= 0) && (newpage.indexOf("Open")!=0) ){
  location.href=newpage;
  }
  
}



	
//-->