// COMMONLY USED JAVASCRIPT FUNCTIONS
// Created : 11-21-05






// Open window script
function NewWindow(mypage, myname, w, h, scrollable, resize, tool, status) {
if(screen.width){
	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;
}else{winl = 0;wint =0;}
  if (winl < 0) winl = 0;
  if (wint < 0) wint = 0;	
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scrollable+',resizable='+resize+',toolbar='+tool+',status='+status+'';
win = window.open(mypage, myname, winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

// Usage: <a href="#" onclick="NewWindow('page.php','popup','430','280','yes','yes','no')">









// GET OBJECT BY ID
function get(id) {
	return (document.getElementById) ? document.getElementById(id) : document.all[id];
}



