function setTextBox(){
	if(document.forms[0].header_search!=null){
		if(document.forms[0].header_search.value=='type your search here'){
			document.forms[0].header_search.value='';
		}
		else if(document.forms[0].header_search.value=='')
		{
			document.forms[0].header_search.value='type your search here';
		}
	}
}
function OpenViewWindow(url, target, w, h)
{

	var sx = (screen.width - w) >> 1;
	var sy = (screen.height - h) >> 1;

	window.open(url, target, "directories=0,height="+h+",location=0,menubar=0,personalbar=0,resizable=0,scrollbars=1,status=0,toolbar=0,width="+w+",screenx="+sx+",screeny="+sy+",left="+sx+",top="+sy);
}

var currLayerId = "blank"; 
	
	function togLayer(id) { 
		if(currLayerId) setDisplay(currLayerId, "none"); 
		if(id)setDisplay(id, "block"); 
		currLayerId = id; 
	} 
	
	function setDisplay(id,value) { 
		var elm = document.getElementById(id); 
		elm.style.display = value; 
	} 
	
	function write_random() {
       var randomnumber =  new String (Math.random()).substring (2, 17);
       document.forms[0].myrandomnumber.value = randomnumber;
	}
