﻿
function swapImg(name, ON_OFF, path, stat_txt){
	var suff = ""
	var type = ".gif";
		suff = ON_OFF ? "_h" : "";
	document.images[name].src = path + suff + type;
	//window.status = stat_txt;
}


function GoTo( url, newWindow ) {
	if (newWindow == 1 )  window.open(url);
	else window.location.href = url;
}

function NewWindow(mypage,myname,h,scroll){
var w=590;
if(navigator.userAgent.indexOf("MSIE")==-1)
{
	var winl =(screen.width)?(screen.width-w)/2:100;
	var wint =(screen.height)?(screen.height-h)/2:100;
	var settings ='height='+h+',';
	settings +='width='+w+',';
	settings +='height='+h+',';
	settings +='top='+wint+',';
	settings +='left='+winl+',';
	settings +='scrollbars='+scroll+',';
	settings +='status=yes,';
	settings +='resizable=yes';
	win=window.open(mypage,myname,settings);
	win.focus();
}else{	
	var winl =(screen.width)?(screen.width-w)/2:100;
	var wint =(screen.height)?(screen.height-h)/2:100;
	var settings ='height='+h+',';
	settings +='width='+w+',';
	settings +='height='+h+',';
	settings +='top='+wint+',';
	settings +='left='+winl+',';
	settings +='scrollbars='+scroll+',';
	settings +='status=yes,';
	settings +='resizable=yes';
	win=window.open(mypage,myname,settings);
	win.focus();
}
}

function clearText(object)
{
	if( object.value == "Search" )
	{ 
		object.value = ''; 
	}
}
