function makeWin(imsrc, ww, wh) {
ww=ww+25; wh=wh+50;
w1=window.open('','w1','width='+ww+',height='+wh+',status=no,toolbar=no,menubar=no,location=no,resizable=yes,scrollbars=yes');
w1.document.open();
w1.document.write("<html><head><title>Image Zoom<\/title><META HTTP-EQUIV=\"Pragma\" CONTENT=\"no-cache\"><META HTTP-EQUIV=\"Expires\" CONTENT=\"-1\"><\/head>");
w1.document.write("<body bgcolor='#FFFFFF' text='#000000' leftmargin=2 topmargin=10><p align=center>");
w1.document.write("<img name=theimg src=" + imsrc + "><br>");
w1.document.write("<a href=\"javascript:window.close();\"><font size=1 face=tahoma color=#000000>close window<\/font><\/a><\/body><\/html>");
w1.document.focus();
};


function mailpage()
{
mail_str = "mailto:?subject=Check out the " + document.title;
mail_str += "&body=I thought you might be interested in the " + document.title;
mail_str += ". You can view it at, " + location.href; 
location.href = mail_str;
}

var br="#"
function chcol(){
for(var i=0;i<document.coll.colle.length;i++)
if(document.coll.colle[i].selected)br=document.coll.colle[i].value
if(br!="#")document.location=br
}
var br="#"
function chcolt(){
for(var i=0;i<document.collt.collet.length;i++)
if(document.collt.collet[i].selected)br=document.collt.collet[i].value
if(br!="#")document.location=br
}

var br="#"
function chmlb(){
for(var i=0;i<document.mlb.mlbe.length;i++)
if(document.mlb.mlbe[i].selected)br=document.mlb.mlbe[i].value
if(br!="#")document.location=br
}


function c4_show_tab(t)
{
	
	 //alert (t);
 curr_tab = document.getElementById('c4tab' + t);
 
 //curr_tab.blur(); 

 var tobj=document.getElementById("c4-tabs")
 tobj_lis=tobj.getElementsByTagName("li")
 //alert (tobj_lis.length); 
 
for(i=1; i<=5; i++)
 {
  document.getElementById('c4tab' + i).className = "c4-hide-tab";
  if(tobj_lis[i-1]) tobj_lis[i-1].className="";
 }
 
 curr_tab.className="c4-show-tab";
 tobj_lis[t-1].className="current";
}


var win = null;
function NewWindow(mypage,w,h){
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
settings = 'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars=yes,resizable'
win = window.open(mypage,'',settings)
}



var menu_selection="";
function  checkForm() {
if (dropDownMenu()) {
document.forms[0].results1.value=menu_selection;
alert("\nForm has been filled out correctly.");
   }
}



var menuids=new Array("verticalmenu") //Enter id(s) of UL menus, separated by commas
var submenuoffset=-2 //Offset of submenus from main menu. Default is -2 pixels.

function createcssmenu(){
for (var i=0; i<menuids.length; i++){
  var ultags=document.getElementById(menuids[i]).getElementsByTagName("ul")
    for (var t=0; t<ultags.length; t++){
    var spanref=document.createElement("span")
		spanref.className="arrowdiv"
		spanref.innerHTML="&nbsp;&nbsp;"
		ultags[t].parentNode.getElementsByTagName("a")[0].appendChild(spanref)
    ultags[t].parentNode.onmouseover=function(){
    this.getElementsByTagName("ul")[0].style.left=this.parentNode.offsetWidth+submenuoffset+"px"
    this.getElementsByTagName("ul")[0].style.display="block"
    }
    ultags[t].parentNode.onmouseout=function(){
    this.getElementsByTagName("ul")[0].style.display="none"
    }
    }
  }
}


if (window.addEventListener) {
	window.addEventListener("load", createcssmenu, false)
}else if (window.attachEvent)	{
	window.attachEvent("onload", createcssmenu)
}




