
function doPopup(theUrl, theFrame, w, h) {
	var canScroll = 'yes';
	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;
	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+canScroll+',resizable';
	win = window.open(theUrl, theFrame, winprops);
	if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}


function capLock(e){
 kc = e.keyCode?e.keyCode:e.which;
 sk = e.shiftKey?e.shiftKey:((kc == 16)?true:false);
 if(((kc >= 65 && kc <= 90) && !sk)||((kc >= 97 && kc <= 122) && sk))
	  return true;
 else
  return false;
}
