
function wOpen(link) {
    leftPos = (screen.width - 800)/2;
    topPos = (screen.height - 560)/2;

    var win = window.open(link, 'edit', 'directories = no, fullscreen = no, height = 575, menubar = no, resizable = yes, status = no, titlebar = no, toolbar = no, width=750, screenX=0, hotkeys=no, left = ' + leftPos + ', top = ' + topPos);
    win.focus();
}

function wOpenScroll(link) {
    leftPos = (screen.width - 700)/2;
    topPos = (screen.height - 575)/2;
    leftPos = 0;
    topPos = 0;
    var win = window.open(link, 'edit', 'directories = no, fullscreen = no, height = 575, menubar = no, resizable = no, status = no, titlebar = no, toolbar = no, width=700, screenX=0, scrollbars=1, hotkeys=no, left = ' + leftPos + ', top = ' + topPos);
    win.focus();
}


function wOpenSmall(link) {
    leftPos = (screen.width - 700)/2;
    topPos = (screen.height - 575)/2;
    var win = window.open(link, '', 'fullscreen = no, height = 1, toolbar = no, status = no, addresbar = no, resizable = no, width=1, screenX=0, left = ' + leftPos + ', top = ' + topPos);
    win.focus();

}

function wOpenImage(link) {
    leftPos = (screen.width - 700)/2;
    topPos = (screen.height - 575)/2;
    var win = window.open(link, '_hw_image', 'fullscreen = no, height = 1, toolbar = no, status = no, addresbar = no, resizable = no, width=1, screenX=0, left = ' + leftPos + ', top = ' + topPos);
    win.focus();

}

function wPrint(link) {
    leftPos = (screen.width - 700)/2;
    topPos = (screen.height - 575)/2;
    var win = window.open(link, '', 'fullscreen = no, height = 450, toolbar = no, addresbar = no, resizable = no, width=600, screenX=0, left = ' + leftPos + ', top = ' + topPos);
		win.setTimeout('window.print()', 1000);
		win.setTimeout('self.close()', 3000);
}

function wOpenHelp(link) {
    leftPos = (screen.width - 800)/2;
    topPos = (screen.height - 600)/2;
    var win = window.open(link, 'help', 'fullscreen = no, height = 500, toolbar = no, addresbar = no, resizable = no, width=700, screenX=0, left = ' + leftPos + ', top = ' + topPos);
    win.focus();
}		

function enter(){
	if (event.keyCode !=13) {return false;}
		return true;
}

function sizecheck(){
				
		if (navigator.appName=="Netscape") {
	  	if ( (self.innerWidth < 750) || (self.innerHeight < 400) ) {
		  	self.resizeTo( self.screen.width,  self.screen.height );		
				self.moveTo(1,1);
	  	}
	  }
	  else if (navigator.appName.indexOf("Microsoft")!=-1) {
			if ((document.body.clientWidth < 750 ) || (document.body.clientHeight < 400)) {
				window.moveTo( 0, 0 );
		  	window.resizeTo( window.screen.availWidth, window.screen.availHeight );		
			}
		}
 } 

function imgOver(thisImg) {
		document[thisImg].src = thisImg + "3.gif";
}

function imgOut(thisImg) {
	document[thisImg].src = thisImg + "1.gif";
}
