
function openPopup(URL, windowName, width, height, resize, scrollbar, toolbar, menubar, status, left, top){
	if(navigator.appName.toLowerCase()=='netscape'){
	   if (scrollbar == null || scrollbar == undefined){scrollbar=1;}
	   if (left==null || left == undefined){left = (screen.availWidth/2) - (width/2)}
	   if (top==null || top == undefined){top = (screen.availHeight/2) - (height/2)}
	}else{
	   if (scrollbar == null || scrollbar == 'undefined'){scrollbar=1;}
	   if (left==null || left == 'undefined'){left = (screen.availWidth/2) - (width/2)}
	   if (top==null || top == 'undefined'){top = (screen.availHeight/2) - (height/2)}
	}
	   var Win = window.open(URL, windowName,'width=' + width + ',height=' + height + ',resizable=' + resize + ',scrollbars=' + scrollbar + ',toolbar=' + toolbar + ',menubar=' + menubar + ',status=' + status + ',left=' + left + ',top=' + top);
	   Win.focus();
}


function ChangeImg(OldImg, NewImg){
//alert(NewImg)
	document.images[OldImg].src = NewImg
}