function displayLoginPage() {
	intW = 300;
	intH = 250;
	intWidth = screen.width;
	intHeight = screen.height;

	intL = (intWidth - intW) / 2;
	intT = (intHeight - intH) / 2;

	winprops = 'height='+intH+',width='+intW+',top='+intT+',left='+intL+',scrollbars=no';
	HostString = new String(location.hostname);
	SplitString = HostString.split(".");
	// url = "https://" + SplitString[0] + ".shadow-planner.com/?direction=login&chrReferer=http://" + SplitString[0] + ".shadow-planner.com/index.php?idPortalLink=494";
	url = "https://london.shadow-planner.com/?direction=login";

	var objLogin = window.open(url, "login", winprops);
} // end function

function open_win(what_link){ 
var the_url = "http://london.shadow-planner.com/browser_test.php"
var the_x = 640;
var the_y = 520;
the_x -= 0;
the_y -= 0;
var how_wide = screen.availWidth;
var how_high = screen.availHeight;
if(what_link != ""){the_url=what_link;}
var the_toolbar = "no";
var the_addressbar = "no";
var the_directories = "no";
var the_statusbar = "no";
var the_menubar = "no";
var the_scrollbars = "yes";
var the_do_resize =  "no";
var the_copy_history = "no";
top_pos = (how_high/2) -  (the_y/2);
left_pos = (how_wide/2) -  (the_x/2);
if (window.outerWidth ){
var option = "toolbar="+the_toolbar+",location="+the_addressbar+",directories="+the_directories+",status="+the_statusbar+",menubar="+the_menubar+",scrollbars="+the_scrollbars+",resizable="+the_do_resize+",outerWidth="+the_x+",outerHeight="+the_y+",copyhistory="+the_copy_history+",left="+left_pos+",top="+top_pos;
site=open(the_url, "DisplayWindow", option);
var Opera = (navigator.userAgent.indexOf('Opera') != -1);
if(Opera){
site.resizeTo(the_x,the_y);
site.moveTo(0,0);
}
}
else
{
var option = "toolbar="+the_toolbar+",location="+the_addressbar+",directories="+the_directories+",status="+the_statusbar+",menubar="+the_menubar+",scrollbars="+the_scrollbars+",resizable="+the_do_resize+",Width="+the_x+",Height="+the_y+",copyhistory="+the_copy_history+",left="+left_pos+",top="+top_pos;
site=open('', "DisplayWindow", option);
site.location=the_url;
if(site.open){site.focus();return false;}
site.resizeTo(the_x,the_y);
}
} 
