function popUp(url, width, height) {
		winOptions = "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width=" + width + ",height=" + height + ",screenX=10,screenY=10";
		var win = window.open(url, 'win1', winOptions);
		if (!win.opener) win.opener = self; // For JS1.0
		if (win.focus) win.focus();
	}

function popUp1(url, width, height) {
		winOptions = "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width=" + width + ",height=" + height + ",screenX=10,screenY=10";
		var win = window.open(url, 'win2', winOptions);
		if (!win.opener) win.opener =self; // For JS1.0
		if (win.focus) win.focus();
	}

function makeWin(imsrc, ww, wh) {
ww=ww+15; wh=wh+25;
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("script>var isNav4, isIE4, hi, wi;if (parseInt(navigator.appVersion.charAt(0)) >= 4) {  isNav4 = (navigator.appName == 'Netscape') ? 1 : 0;  isIE4 = (navigator.appName.indexOf('Microsoft') != -1) ? 1 : 0;}function fitWindowSize(im) {if (isNav4) {  wi = document.images['theimg'].width + 60;  hi = document.images['theimg'].height + 175;  if(hi > 600) hi = 600;  if(wi > 800) wi = 800;  window.innerWidth = wi;  window.innerHeight = hi;}if (isIE4) {  getSizes();  if(hi > 600) hi = 600;  if(wi > 800) wi = 800;  window.resizeTo(wi, hi);  }  }  function getSizes() {  wi = document.images['theimg'].width + 60;  hi = document.images['theimg'].height + 175;}</");
w1.document.write("script><body bgcolor='#e4e4e4' text='#000000' leftmargin=2 topmargin=10><p align=center><TABLE BORDER=0 cellpadding=0 cellspacing=5><TR><TD valign=middle align=center><img border=1 style='border-color:#999999' name=theimg src=");
w1.document.write(imsrc);
w1.document.write(" onload='javascript:fitWindowSize()'></TD></TR><TR><TD><CENTER><FORM><INPUT TYPE=button VALUE=Close ONCLICK=window.close()></FORM></CENTER></TD></TR></TABLE></body><head><META HTTP-EQUIV='Pragma' CONTENT='no-cache'><META HTTP-EQUIV='Expires' CONTENT='-1'></head></html>");
w1.document.close();
w1.focus();
} 
	
function isblank(value)
            {
	           for(var i=0; i<value.length; i++)
	           {
		          var c=value.charAt(i);
		          if((c!=' ')&&(c!='\\n')&&(c!='\\t'))
			     return false;
	           }
	            return true;
            }
	
function Go(form, elt) {
	if (form != null) {
		with (form.elements[elt]) {
			if (0 <= selectedIndex)
				location = options[selectedIndex].value;
		}
	}
}

function chkCheckBox(chkObj, txtObj){
	txtObj.value=trim(txtObj.value);
	if(txtObj.value!='' && chkObj.checked!=true)
		chkObj.checked=true;
}

// Removes leading whitespaces
function LTrim( value ) {
	
	var re = /\s*((\S+\s*)*)/;
	return value.replace(re, "$1");
	
}

// Removes ending whitespaces
function RTrim( value ) {
	
	var re = /((\s*\S+)*)\s*/;
	return value.replace(re, "$1");
	
}

// Removes leading and ending whitespaces
function trim( value ) {
	
	return LTrim(RTrim(value));
	
}



