preImg = new Array()
imgNum = 1
isDOM = (document.getElementById) ? true : false
isOpera = (window.opera) ? true : false
isMSIE=isIE = (document.all && document.all.item && !isOpera)
isNC = navigator.appName == "Netscape"
isNC4 = isNC && !isDOM
imagePrefix="document.images[\""
imagePostfix="\"]"
if(isMSIE || isOpera){
	layerPrefix = "document.all[\""
	layerPostfix="\"]"
}
else if(isDOM){
  layerPrefix = "document.getElementById(\""
  layerPostfix = "\")"
}

function iSource(iWin,url)	//	replaces iframe source page
{
	if(!isNC4) eval(layerPrefix+iWin+layerPostfix+".src = url")
}
function changeImg(im,src)	//	changes image souce
{
	eval(imagePrefix+im+imagePostfix+".src=src")
}
function printpage()	//	prints	page
{
	if(!window.print)
	{
		alert("You need NS4.x to use this print button!")
		return
	}
	window.print()
}
function imgLoad(src)	//	preloads given image
{
	preImg[imgNum] = new Image()
	preImg[imgNum].src = src
	imgNum++
}
function winOp(url)
{
	new_win = window.open(url,'new_win','width=770,height=500,top=0,left=0,scrollbars=1')
}
