function doprint()
			{ 
				var disp_setting = "toolbar=no,location=no,directories=no,menubar=no,"; 
				disp_setting += "scrollbars=yes,width=650, height=600, left=100, top=25"; 
				var content_vlue = document.getElementById("print_content").innerHTML; 
				
				var docprint ;
				docprint = window.open("","",disp_setting); 
				docprint.document.open(); 
				docprint.document.write('<html><head><title>GAIL</title>'); 
				docprint.document.write('<LINK href=style/gailprint.css rel=STYLESHEET type=text/css>'); 
				docprint.document.write('</head><body onLoad="self.print()">');  
				//docprint.document.write('<center><input type=button name=print value="Print" onclick="self.print()"></center><br>');        
				docprint.document.write('</head><body>');          
				docprint.document.write(content_vlue);          
				docprint.document.write('</body></html>'); 
				//docprint.document.write('<br><center><input type=button name=print value="Print" onclick="self.print()"></center></body></html>'); 
				docprint.document.close(); 
				docprint.focus(); 
			}
function showimg(imgObj)
			{ 
				var disp_setting = "toolbar=no,location=no,directories=no,menubar=no,"; 
				disp_setting += "scrollbars=yes,width=650, height=600, left=100, top=25"; 
				var imgname;
				imgname = imgObj.src;
				imgname = imgname.substring(0,imgname.length - 4) + "_p.jpg";
			
				var content_vlue = "<img src=" + imgname + " border=0>";
				
				var docprint ;
				docprint = window.open("","",disp_setting); 
				docprint.document.open(); 
				docprint.document.write('<html><head><title>GAIL</title>'); 
				docprint.document.write('<LINK href=style/gailprint.css rel=STYLESHEET type=text/css>'); 
				docprint.document.write('</head><body >');  
				docprint.document.write('</head><body>');          
				docprint.document.write(content_vlue);          
				docprint.document.write('</body></html>'); 
				docprint.document.close(); 
				docprint.focus(); 
			}

function showimgnew(imgObj)
			{ 
				var disp_setting = "toolbar=no,location=no,directories=no,menubar=no,"; 
				disp_setting += "scrollbars=yes,width=650, height=600, left=100, top=25"; 
				var imgname;
				var imgname = "images/" + imgObj;
				//imgname = imgObj.src;
				//imgname = imgname.substring(0,imgname.length - 4) + "_p.jpg";
			
				var content_vlue = "<img src=" + imgname + " border=0>";
				
				var docprint ;
				docprint = window.open("","",disp_setting); 
				docprint.document.open(); 
				docprint.document.write('<html><head><title>GAIL</title>'); 
				docprint.document.write('<LINK href=style/gailprint.css rel=STYLESHEET type=text/css>'); 
				docprint.document.write('</head><body >');  
				docprint.document.write('</head><body>');          
				docprint.document.write(content_vlue);          
				docprint.document.write('</body></html>'); 
				docprint.document.close(); 
				docprint.focus(); 
			}
		
function dofaq()
{
}

function domailto()
{
}

var objSelMenu;
var objRselMenu;
function changecolor(rowObj)	
{
	rowObj.style.cursor = 'hand';
if  (rowObj != objSelMenu) {if (rowObj.className == "divlmenu") {rowObj.className = "divbmenu";} else {rowObj.className = "divlmenu";}}		
}
function changeRcolor(rowObj)
{
	rowObj.style.cursor = 'hand';
if  (rowObj != objRselMenu) {if (rowObj.className == "divlmenu") {rowObj.className = "divbmenu";} else {rowObj.className = "divlmenu";}}		
}

function gotoPage(strUrl)
{
	document.location = strUrl;
}

function doPopup(strUrl)
{
	var disp_setting = "toolbar=no,location=no,directories=no,menubar=no,"; 
	disp_setting += "scrollbars=yes,width=520, height=520, left=100, top=25"; 
	var content_vlue = document.getElementById("print_content").innerHTML; 
	
	var docprint ;
	docprint = window.open(strUrl,"",disp_setting);
}

function init(selRow,RselRow){objSelMenu = document.getElementById(selRow);objSelMenu.className = "divbmenu";
if (RselRow != ""){objRselMenu = document.getElementById(RselRow);objRselMenu.className = "divbmenu";}}




// Retrieve last key pressed.  Works in IE and Netscape.
// Returns the numeric key code for the key pressed.
function getKey(e)
{
if (window.event)
   return window.event.keyCode;
else if (e)
   return e.which;
else
   return null;
}
// Returns true if the last key pressed was a member of the valid character list,
// or a control key.  Useful to restrict input in a text box when used in conjunction
// with the onKeyPressed() event.
//
// <INPUT NAME=INT onKeyPress="return restrictChars(event,'0123456789')">
//
// Above will allow only numeric input into the text box. This function is 
// case insensitive so including "A" in the list is equivalent to "a".
function restrictChars(e, validList)
{
var key, keyChar;
key = getKey(e);
if (key == null) return true;
// get character - remove toLowerCase for case sensitive checking
keyChar = String.fromCharCode(key).toLowerCase();
// check valid characters - remove toLowerCase for case sensitive checking
if (validList.toLowerCase().indexOf(keyChar) != -1)
return true;
// control keys
// null, backspace, tab, carriage return, escape
<!--if ( key==0 || key==8 || key==9 || key==13 || key==27 ) -->
if(key==0 || key==8 || key==9 || key==13 || key==27  || key==32 ||  key>=48 && key<=57  ||  key>=97 && key<=122  ||  key>=65 && key<=90) 
   return true;
// else return false
return false;
}
function numericOnly( e)
{
return restrictChars( e, "0123456789");
}

function alphanumericOnly( e)
{
return restrictChars( e, "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ");
}





//for search
 /*function ValidInput(e)
{
	var keynum;
	var keychar;
	var numcheck;
	if(window.event) // IE
	{
				keynum = e.keyCode;
	}
	else if(e.which) // Netscape/Firefox/Opera
		{
				keynum = e.which;
		}
	if((keynum==32) || (keynum>=48 && keynum<=57) || (keynum>=97 && keynum<=122) || (keynum>=65 && keynum<=90) )
	{
				
	}
	else
	{
				e.keyCode=0;
	}
}

*/