function clearText(thefield){
if (thefield.defaultValue==thefield.value)
thefield.value = ""
} 


function addLoadEvent(func) 
{
	var oldonload = window.onload;

	if (typeof window.onload != 'function')
	{
		window.onload = func;
	}
	else
	{
		window.onload = function() { oldonload(); func(); };
	}
}


function printPage()
{
	window.print();  
	return false;
}


function pop_image(image, width, height) 
{
	window.open(escape(image),"","width="+width+",height="+height+",menubar=0,scrollbars=1,toolbar=0");
	return false;
}

function pop_image2(image, width, height) 
{
	window.open(image,"","width="+width+",height="+height+",menubar=0,scrollbars=1,toolbar=0");
	return false;
}

function pop(url) 
{	
	var loc = window.location;
	window.open(url,'pop_resource','toolbar=0,menubar=0,location=0,scrollbars=1,height=500,width=600,resizable=1');
	return false;
}

function pop_window(url,width,height) 
{
	window.open(url,"info",'toolbar=no,menubar=no,resizable=yes,location=no,scrollbars=yes,height='+height+',width='+width);
	return false;
}