
<!--hide

if (window != top) top.location.href = location.href;
window.name = 'LW_Home';
var theHOST = window.location.host;
//alert ("HOST " +theHOST);

	
var hide= false;
function toggleRows(tableId, tag){

	tbl = document.getElementById(tableId);

	var len = tbl.rows.length;

	var vStyle = (hide)? "none":"";

	for(i=1 ; i< len; i++){
		 tbl.rows[i].style.display = vStyle;
	}

	if(hide)
		tag.innerHTML = "<b>Advanced Search</b>";
	else
		tag.innerHTML = "<b>Search</b>";
	hide= !hide;
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
	if (winName == "MyList")
  		MyList = window.open(theURL,winName,features);
	else
		window.open(theURL,winName,features);	
}

function submitform()
{
  document.searchForm.submit();
}

function waitPreloadPage() { //DOM
	if (document.getElementById){
		document.getElementById('prepage').style.visibility='hidden';
	} else {
		if (document.layers){ //NS4
			document.prepage.visibility = 'hidden';
		}
		else { //IE4
			document.all.prepage.style.visibility = 'hidden';
		}
	}
}

function closeWindows() {
	//alert("YO...closin dah winderz ");
        if ((typeof(MyList) != "undefined") && MyList && !MyList.closed) {
		//alert("HERE I AM ");
                MyList.close();
                MyList = void(0);
        }
}

function lwLogout() {
	closeWindows();
	if (theHOST == "www.labelwatch.com") {
		top.document.location.replace("http://www.labelwatch.com/logout.php");
	} else
	if (theHOST == "67.101.118.196") {
		top.document.location.replace("http://67.101.118.196/logout.php");
	} else 
	if (theHOST == "74.54.147.146") {
		top.document.location.replace("http://74.54.147.146/~anantkes/logout.php");
	}
}



