function popup_window( url, id, width, height )
{
	//extract the url parameters if any, and pass them to the called html
	var tempvar=document.location.toString(); // fetch the URL string
	var passedparams = tempvar.lastIndexOf("?");
	if(passedparams > -1)
		url += tempvar.substring(passedparams);
	popup = window.open( url, id, 'toolbar=no,scrollbars=no,location=no,statusbar=no,menubar=no,resizable=no,width=' + width + ',height=' + height + '' );
	popup.focus();
}

function popUp(URL)
{
    day = new Date();
    id = day.getTime();
    eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=1,menubar=0,resizable=0,width=700,height=700');");
}

function popup2(url, width, height)
{
    day = new Date();
    id = day.getTime();
  	popup = window.open( url, id, 'toolbar=0,scrollbars=0,location=0,statusbar=1,menubar=0,resizable=0,width=' + width + ',height=' + height + '' );
    popup.focus();

}
