// JavaScript Document
function newWin( picURL, width, height ) {
	var html = '<HTML><BODY bgcolor="white" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"><IMG src="' + picURL + '"></BODY></HTML>';
	var swin = window.open( '', 'subWin', 'width=' + width + ',height=' + height );
	swin.resizeTo( width, height );
	swin.document.open();
	swin.document.write( html );
	swin.document.close();
	swin.focus();
	}
	
function WinOpu(addr){
	var w = 
	window.open(addr,"nWin","menubar=no,status=no,toolbar=yes,scrollbars=yes,resizable=yes,width=770,height=600"); 
		
	 w.focus(); 
	}
	
function WinOpu2(addr){
	var w = 
	window.open(addr,"nWin2","menubar=no,status=no,toolbar=no,scrollbars=auto,resizable=yes,width=525,height=740"); 
	
	 w.focus(); 
	}
	
// horizontal AD
function WinOpu3(addr){
	var w = 
	window.open(addr,"nWin3","menubar=no,status=no,toolbar=no,scrollbars=auto,resizable=yes,width=440,height=620"); 
	
	 w.focus(); 
	}
	
// Vertical AD
function WinOpu4(addr){
	var w = 
	window.open(addr,"nWin4","menubar=no,status=no,toolbar=no,scrollbars=auto,resizable=yes,width=620,height=440"); 
		
	 w.focus(); 
	}
	
// horizontal AD
function WinOpuC(addr){
	var w = 
	window.open(addr,"nWinC","menubar=no,status=no,toolbar=no,scrollbars=auto,resizable=yes,width=600,height=500"); 
		
	 w.focus(); 
	}



function CloseWin(){
    window.close();
	}
	
// Unit Conversion
	
 	function calc(val,factor,putin) {
 	if (val == "") {
		val = "0"
	}
	evalstr = "document.ConverTable."+putin+ ".value = "
	evalstr = evalstr + val + "*" + factor
	eval(evalstr)

	}

