function show(id)
{
	var id1 = document.getElementById(id);
	if(id1.style.display == "none")
	id1.style.display = "block";
	else if(id1.style.display == "block")
	id1.style.display = "none";
	else
	id1.style.display = "block";
	
	
	
}

function validateshortsearch()
{
		var erc = 0;

		if(document.search.searchh1 && document.search.searchh1.value=='' )
		{
		alert("Enter Search term");
		document.search.searchh1.focus();
		erc++;
		return false;
		}
		return true;
	
}

function changestyle(id ,  imgName)
{

 var id1 =	document.getElementById(id);
 document.getElementById(id).style.background = "url(" + imgName + ")"; 
	
}

   function PopupPic(sPicURL) {
     window.open( "popup.htm?"+sPicURL, "",  
     "resizable=1,HEIGHT=200,WIDTH=200");
   }
   
function hide(id)
{
	var id1 = document.getElementById(id);
	id1.style.display = "none"

}

var newwindow;
function poptastic(url, width, height)
{
	
	newwindow=window.open(url,'name','height='+height+',width='+width +', resizable');
	if (window.focus) {newwindow.focus()}
}
function poptastic2(url, width, height)
{
	
	newwindow=window.open(url,'name','height='+height+',width='+width);
	if (window.focus) {newwindow.focus()}
}