var picWin;
var change_height;
function popPic(p,t) {
	if (typeof(picWin) != 'undefined' && !(picWin.closed)) {picWin.close();}
	picWin = window.open('','picWin','scrollbars=1,menubar=0,left=0,top=0,width=300px,height=300px,dependent=1,resizable=0', replace=1);
	picWin.document.open();
	picWin.document.write('<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title>image popup</title><style type="text/css">body{background-color:#6F6F6F;margin:0px;}.text{font-family: Arial, Helvetica, sans-serif;font-size:12px;color:#FFFFFF;text-align:center;}.load{font-family:Arial,Helvetica,sans-serif;font-size:12px;font-weight:bold;color:#CCCCCC;width:80px;text-align:left;}.hide{display:none;}.show{display:;}</style></head><body onLoad="checksize();"scroll=no><script language=javascript>document.oncontextmenu=new Function("return false");function checksize(){if(document.images[0].complete){document.getElementById("load").className="hide";document.getElementById("show").className="show";h=document.images[0].width+40;v=document.images[0].height+110;if(h>(screen.availWidth-10)){h=screen.availWidth-10;document.body.scroll="yes";}if(v>(screen.availHeight-20)){v=screen.availHeight-20;document.body.scroll="yes";}window.resizeTo(h,v);window.focus();}else{setTimeout("checksize()",250)}}</script><table width="100%" height="100%"  border="0" cellpadding="0" cellspacing="0"><tr><td align="center" valign="middle"><div class="load" id="load">LOADING . . .</div><div class="hide" id="show"><img src="'+p+'"></div><table width="100%"  border="0" cellspacing="0" cellpadding="6" class="text"><tr><td>'+texts[t]+'</td></tr></table></td></tr></table></body></html>');
	picWin.document.close();
}

function popUp(a){
	window.open('calendar_moreinfo.php?r='+a,
				'name',
				'height=300,width=320, toolbar=no,directories=no,status=no,menubar=no, scrollbars=yes,resizable=no'
				);
}

function roll(a){if (a.className.substr((a.className.length-1),1) == 'n') {b='o';}else {b='n';}a.className=a.className.substr(0,(a.className.length-1))+b;}
function request_ok() {
	a = request_ok.arguments;
	for (i=0;i<a.length;i++) {
		b = eval("document.forms['request']."+a[i]+".value");
		if (b == '' || b == 'fill this') {
			eval("document.forms['request']."+a[i]+".value = 'fill this'");
			eval("document.forms['request']."+a[i]+".select()");
			return false;
		}
	}
	return true;
}

function resize(){
/*var shift_right = 0;
if (navigator.appName == 'Netscape') {
  if ((window.innerWidth/2-412) > (window.innerWidth-document.body.clientWidth)){
  shift_right = (window.innerWidth/2-412); //+;
  } else {shift_right = (window.innerWidth-document.body.clientWidth) - (window.innerWidth/2-412)}
 }
	alert (window.innerWidth/2-412);
	document.getElementById('stretcher').style.width = shift_right+'px';
*/
if (navigator.appName == 'Netscape') {
  change_height = window.innerHeight-30;
  document.getElementById('stretcher').style.height = change_height+'px';
 } else {
	 document.getElementById('stretcher').style.height = "100%";
	 }
}