﻿function OpenEditHtml(url){
    var returnValue = '';
    returnValue = window.dialog(url,[window],'width=640,height=490,toolbars=0,resizable=0',true);
	if(returnValue){
	   window.location.reload();
	}
}
function OpenEditLinks(url){
    var returnValue = '';
    returnValue = window.dialog(url,[window],'width=640,height=490,toolbars=0,resizable=0',true);
	if(returnValue){
	   window.location.reload();
	}
}
function OpenEditNews(url){
    var returnValue = '';
    returnValue = window.dialog(url,[window],'width=640,height=490,toolbars=0,resizable=0',true);
	if(returnValue){
	   window.location.reload();
	}
}
function OpenUrl(url){
    window.location = url;
}
function CloseDialog(returnValue)
{
	window.returnValue = returnValue;
	window.close();
}
function irCreateLogOffBox() { 
	var dvErr = document.createElement("div"); 
	dvErr.id = "ir_LogOffBox"; 
	dvErr.style.cssText = "top:0;left:0; display: none; POSITION: absolute; Z-INDEX: 905; FILTER: progid:DXImageTransform.Microsoft.Alpha( style=0,opacity=25);BACKGROUND-COLOR: darkgray"; 
	dvErr.style.height = window.getHeight() + 'px';
	dvErr.style.width = window.getWidth() + 'px';
	//document.body.appendChild(dvErr);
	document.forms[0].appendChild(dvErr);
	return dvErr;
}
function BrowserDetect() {
	doc=window.document;
	navVersion=navigator.appVersion.toLowerCase();
	this.ie4=(!doc.getElementById&&doc.all)?true:false;
	this.ie5=(navVersion.indexOf("msie 5.0")!=-1)?true:false;
	this.ie55=(navVersion.indexOf("msie 5.5")!=-1)?true:false;
	this.ie6=(navVersion.indexOf("msie 6.0")!=-1)?true:false;
	this.ie7 = (navVersion.indexOf("msie 7.0") != -1) ? true : false;
	this.ie8 = (navVersion.indexOf("msie 8.0") != -1) ? true : false;
	this.isIE = (this.ie5 || this.ie55 || this.ie6 || this.ie7 || this.ie8) ? true : false;
	this.isGecko=!this.isIE;
};
Browser = new BrowserDetect();
window.getWidth = function(){
		return this.document.documentElement.clientWidth;
	};

window.getHeight = function(){
		return this.document.documentElement.clientHeight;
	};
 		