var oRedLogs

function irIE55Plus() {
	var lIE55Plus=document.all && document.fireEvent

	if (!lIE55Plus){
		alert('Programmas sekmīgam darbam uz jūsu datora nepieciešams Internet '+
		'Explorer 5.5 vai augstāka versija! '+
		'Par uzstādīšanu sazinieties ar savu sistēmas administratoru!')
		return false
	}

	return true
}

function RedigLogs(cProc) {
   var nAugst=window.screen.availHeight-50
		,nPlat=window.screen.availWidth-10

	if (!irIE55Plus())	{
		return false
	} else {
	   oRedLogs = window.open(cProc,'Rediget','menubar=0; scrollbars=1; resizable=1;'+
		' status=1; left=0; width='+nPlat+'; height='+nAugst)
	}

}

function RedigLogs1(cProc,cLogaVards) {
   var nAugst=window.screen.availHeight-50,nPlat=window.screen.availWidth-10

	if (!irIE55Plus())	{
		return false
	} else {
		oRedLogs = window.open(cProc,cLogaVards,'menubar=0; scrollbars=1; '+
			'resizable=1; status=1; left=0; width='+nPlat+'; height='+nAugst)
	}

}

function RedigLogs2(cProc,cLogaVards) {
   var nAugst=window.screen.availHeight-50,nPlat=window.screen.availWidth-10

	if (!irIE55Plus())	{
		return false
	} else {
		return window.open(cProc,cLogaVards,'menubar=0; scrollbars=1; '+
			'resizable=1; status=1; left=0; width='+nPlat+'; height='+nAugst)
	}

}


function RedigLogsVisi(cProc) {
   var nAugst=window.screen.availHeight-50
		,nPlat=window.screen.availWidth-10
   oRedLogs = window.open(cProc,'Rediget','menubar=0; scrollbars=1; resizable=1;'+
		' status=1; left=0; width='+nPlat+'; height='+nAugst)
}

function RedigLogsIzm(cProc,cLogaVards,nAugst,nPlat,nLeft,nTop) {
	oRedLogs=window.open(cProc,cLogaVards,'menubar=1; scrollbars=1; '+
			'resizable=1; status=1; left='+nLeft+'; top='+nTop+'; width='+nPlat+
			'; height='+nAugst)
}

function RedigLogs3(cProc,cLogaVards,nProcHeight,nProcWidth) {      
   var nWidth=window.screen.availWidth
		,nHeight=window.screen.availHeight
		,nHeightNew=nHeight*nProcHeight/100
        ,nWidthNew=nWidth*nProcWidth/100
		,nTop=(nHeight-nHeightNew)/2-25
		,nLeft=(nWidth-nWidthNew)/2
	   ;
	oRedLogs=window.open(cProc,cLogaVards,"menubar=1; scrollbars=1; "+
			"resizable=1; status=1; left="+nLeft+"; top="+nTop+"; width="+nWidthNew+
			"; height="+nHeightNew)
}      
