function WindowImg(title,bgcolor,img,w,h) {
	var htmlpage = " ";
	w+=30;
	h+=30;
	var nameWindow = img.substring(4,img.length-4);
	var options = "'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=1,copyhistory=no,width=" + w + ", height=" + h + "'";
	NewWindow = window.open('',nameWindow,options);
	NewWindow.creator = self;
	NewWindow.document.open();
	htmlpage += "<HTML><HEAD><TITLE>" + title + "</TITLE></HEAD><BODY MARGINHEIGHT=0 MARGINWIDTH=0 BORDER=0 BGCOLOR='" + bgcolor + "' ><CENTER>";
	htmlpage += "<IMG SRC='" + img + "' BORDER=0>";
	htmlpage +="</CENTER></BODY></HTML>";
	NewWindow.document.write(htmlpage);
	NewWindow.document.close();
}

function WindowTxt(title,bgcolor,txt,w,h) {
	var htmlpage = " ";
	var options = "'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,copyhistory=no,width=" + w + ", height=" + h + "'";
	NewWindow = window.open('','nameWindow',options);
	NewWindow.creator = self;
	NewWindow.document.open();
	htmlpage += "<HTML><HEAD><TITLE>" + title + "</TITLE></HEAD><BODY MARGINHEIGHT=0 MARGINWIDTH=0 BORDER=0 BGCOLOR='" + bgcolor + "' >";
	htmlpage +="</BODY></HTML>";
		
	NewWindow.document.write(htmlpage);
	NewWindow.document.close();
}
    
function WindowImgTxt(title,bgcolor,img,txt,w,h) {
	var htmlpage = " ";
	w+=40;
	h+=30;
	var nameWindow = img.substring(4,img.length-4);
	var options = "'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,copyhistory=no,width=" + w + ", height=" + h + "'";
	NewWindow = window.open('',nameWindow,options);
	NewWindow.creator = self;
	NewWindow.document.open();
	htmlpage += "<HTML><HEAD><TITLE>" + title + "</TITLE></HEAD><BODY MARGINHEIGHT=0 MARGINWIDTH=0 BORDER=0 BGCOLOR='" + bgcolor + "' >";
	htmlpage += "<IMG SRC='" + img + "' BORDER=0 ALIGN=LEFT>";
	htmlpage += + txt + "</BODY></HTML>";
	NewWindow.document.write(htmlpage);
	NewWindow.document.close();
}

function NewWindow(mypage, myname, w, h, scroll) {
	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;
	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'
	win = window.open(mypage, myname, winprops)
	if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}