var		pageToLoad;
var		winName;
function openW( pageToLoad, winName, width, height, center) 
	{
    	xposition=0; yposition=0; 
		
		if ((parseInt(navigator.appVersion) >= 4 ) && (center))
		{
			xposition = (screen.width - width) / 2;
			yposition = (screen.height - height) / 2;    
		}
		
		args = "width=" + width + ","     + "height=" + height + "," 
		+ "location=0,"     + "menubar=0,"    + "resizable=0,"    + "scrollbars=1,"
		+ "status=0,"     + "titlebar=0,"    + "toolbar=0,"    + "hotkeys=0,"
		+ "screenx=" + xposition + ","  //NN Only
		+ "screeny=" + yposition + ","  //NN Only
		+ "left=" + xposition + ","     //IE Only
		+ "top=" + yposition;           //IE Only
		window.open( pageToLoad,winName,args );
	}

function setFormValue(frm, val) 
{
	for (i=0; i<frm.options.length; i++) 
	{
		if (frm.options[i].value==val) 
		{
			frm.selectedIndex = i;
			break;
		}
	}
}

function isValidEmail(email)
{
	if (email.length==0 || email.indexOf("@")<1 || email.length<6)
		return false;
	else
		return true;
}
