iens6=document.all||document.getElementById;
ns4=document.layers;
/*
window.onload=function(){
	document.getElementById("loading").style.display="none";
	document.getElementById("mainpage").style.display="block";
}
*/
function OpenWin(url,name,width,height,param) {
	var left = 0;
	var top = 0;
	if (window.innerWidth != undefined) {
		left = (window.innerWidth/2) - width/2;
		top = (window.innerHeight/2) - height/2;
	} else if (window.screen) {
		left = (window.screen.availWidth/2) - width/2;
		top = (window.screen.availHeight/2) - height/2;
	}
	var cfg = ",width=" + width + ",height=" + height + ",left=" + left + ",top=" + top;
	window.open(url,name,param + cfg);
}
function bookmark(url, title){
	if (window.sidebar) { // Mozilla Firefox Bookmark
		window.sidebar.addPanel(title, url,"");
	} else if( window.external ) { // IE Favorite
		window.external.AddFavorite( url, title); }
	else if(window.opera && window.print) { // Opera Hotlist
		return true; }
 }

