function $(idString)
{
	if(document.getElementById(idString))
	{
		return document.getElementById(idString);
	}
	return null;
}
function PopUp(Url,WinName,Width,Height)
	{
		LeftPosition	= (screen.availWidth) ? (screen.availWidth-Width)/2 : 0;
		TopPosition		= (screen.availHeight) ? (screen.availHeight-Height)/2 : 0;
		PopUpWin = window.open(Url,WinName,'menubar=no,scrollbars=no,resizable=yes,toolbar=no,directories=no, left='+LeftPosition+' , top='+TopPosition+' ,width='+ Width +',height=' + Height)
		PopUpWin.focus()
	}
function popUp(URL) 
	{
		day = new Date();
		id = day.getTime();
		eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=700,height=500,left = 290,top = 230');");
	}	

function chagepage(url)
	{
		var frmObj = document.getElementById("frm");
		frmObj.src = url;
	}