function elementFocus()
	{
		slct = document.getElementsByTagName('select');
		tArea = document.getElementsByTagName('textarea');
		input = document.getElementsByTagName('input');

    for (i = 0; i < input.length; i++)
    {
        if(input[i].type == "text" || input[i].type == "password" || (input[i].type == "file" ))
		{
			input[i].onfocus = new Function("if(this.focus){if(this.id=='pghdusername' && this.value=='Username'){this.value='';}else if(this.id=='pghdpassword' && this.value=='Password'){this.value='';}this.className = 'focus';}");
			input[i].onblur = new Function("if(this.blur){if(this.id=='pghdusername' && this.value==''){this.value='Username';}else if(this.id=='pghdpassword' && this.value==''){this.value='Password';}this.className = '';}");
    	}		
	}
	
	for (i = 0; i < tArea.length; i++)
    {
        tArea[i].onfocus = new Function("if(this.focus){this.className = 'focus'}");
		tArea[i].onblur = new Function("if(this.blur){this.className = ''}");
    }
	
	// this actually highlights the OPTION rather than the whole SELECT in MSIE6.0
	
   for (i = 0; i < slct.length; i++)
    {
        slct[i].onfocus = new Function("if(this.focus){this.className = 'focus'}");
	slct[i].onblur = new Function("if(this.blur){this.className = ''}");
    }
}
//***************************************MUltiple Onloads*********************************
// Browser Detection
isMac = (navigator.appVersion.indexOf("Mac")!=-1) ? true : false;
NS4 = (document.layers) ? true : false;
IEmac = ((document.all)&&(isMac)) ? true : false;
IE4plus = (document.all) ? true : false;
IE4 = ((document.all)&&(navigator.appVersion.indexOf("MSIE 4.")!=-1)) ? true : false;
IE5 = ((document.all)&&(navigator.appVersion.indexOf("MSIE 5.")!=-1)) ? true : false;
ver4 = (NS4 || IE4plus) ? true : false;
NS6 = (!document.layers) && (navigator.userAgent.indexOf('Netscape')!=-1)?true:false;

// Body onload utility (supports multiple onload functions)
var gSafeOnload = new Array();
function SafeAddOnload(f)
{
	if (IEmac && IE4)  // IE 4.5 blows out on testing window.onload
	{
		window.onload = SafeOnload;
		gSafeOnload[gSafeOnload.length] = f;
	}
	else if  (window.onload)
	{
		if (window.onload != SafeOnload)
		{
			gSafeOnload[0] = window.onload;
			window.onload = SafeOnload;
		}		
		gSafeOnload[gSafeOnload.length] = f;
	}
	else
		window.onload = f;
}
function SafeOnload()
{
	for (var i=0;i<gSafeOnload.length;i++)
	gSafeOnload[i]();
}
SafeAddOnload(elementFocus);


	function wopen2(url, wdth, hght)
		{
			window.open(""+url+"", "popUpWin", "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=auto, resizable=no,copyhistory=yes,width="+wdth+",height="+hght+",left=220,title=no, top=10");
		}

