
//-----------------------------------
// FUNCTION: Clear text in form on click

function clickclear(thisfield, defaulttext) {
if (thisfield.value == defaulttext) {
thisfield.value = "";
}
}

function clickrecall(thisfield, defaulttext) {
if (thisfield.value == "") {
thisfield.value = defaulttext;
}
}


//-----------------------------------
// FUNCTION: Create Pop Up Window

function NewWin(product, dimh, dimw)
{
	self.name = "Repro_Main"; // names current window as "main"
var hth=dimh;
var wth=dimw
var screenWidth		=	(screen.width - wth) / 2;
var screenHeight	=	(screen.height - hth) / 2;

page = product;
var pop = window.open(page,'pop','scrollbars=no,height='+hth+',width='+wth+',resizable=yes,top='+screenHeight+',left='+screenWidth+'');
pop.focus();
}


//--------------------------------
// FUNCTION: Show Division

function ShowDiv (id){	
	if( document.layers ) {   
		document.layers[id].style.display = "inline";
	} else if( document.all ) {
		document.all[id].style.display = "inline";
	} else if( document.getElementById ) {
		document.getElementById(id).style.display = "inline";
	}
}

//--------------------------------
// FUNCTION: Hide Division
function HideDiv(id){
	if( document.layers ) {   
		document.layers[id].style.display = "none";
	} else if( document.all ) {
		document.all[id].style.display = "none";
	} else if( document.getElementById ) {
		document.getElementById(id).style.display = "none";
	}
}

