function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function imgpopup(theURL) {
	window.open("/showbigimage.php?src="+theURL, "Image","toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=yes,width=200,height=200");
}

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function searchalt(el,over){
	el.parentElement.style.backgroundImage='url(/images/search-bg'+(over?'-on':'')+'.gif)';
	el.parentElement.parentElement.children[0].children[0].src='/images/search-left'+(over?'-on':'')+'.gif';
	el.parentElement.parentElement.children[2].children[0].src='/images/search-right'+(over?'-on':'')+'.gif';
}
function langalt(el,over){
	document.images['img_'+el].src='/images/flag_'+el+(over?'-on':'')+'.gif';
}
function buttonalt(el,over){
	el.parentElement.style.backgroundImage='url(/images/button-bg'+(over?'-on':'')+'.gif)';
	el.parentElement.parentElement.children[0].children[0].src='/images/button-left'+(over?'-on':'')+'.gif';
	el.parentElement.parentElement.children[2].children[0].src='/images/button-right'+(over?'-on':'')+'.gif';
}

function popprintwindow(file)
{
	window.open(file, "_new", "width=800,height=600,scrollbars=1")
}

function popprintwindow1(File) {
	var newCSS = document.createElement("LINK");
	newCSS.rel = "stylesheet";
	newCSS.type = "text/css";
	newCSS.href = "style_print.css";
	document.body.appendChild(newCSS);
//	(document.getElementsByName("hideForPrint"))
	/* additional rules */
//	document.getElementById("ChangeCols").collspan = 2;
//	window.open(file, "_new", "width=800,height=600,scrollbars=1")
}

function s(obj, objName) {
objName = (objName)?objName:"object"
var result = ""
for (var i in obj) {
result += objName + "." + i + " = " + obj[i] + "\n"
}
alert(result)
}

function printdoc() {
window.print();
}

function popuppage (file)
{
	window.open(file, "_new", "width=800,height=400,scrollbars=1,resizable=yes")
}

function popwindow (file)
{
	window.open(file, "_new", "width=580,height=380,scrollbars=yes")
}
function redir(theURL){
	window.open(theURL);
	if (navigator.appVersion.indexOf("MSIE") != -1)
  if (window.event)
    window.event.returnValue = false; // IE 
  return false;
}
function setHp(e) {
	e.style.behavior="url(#default#homepage)"; 
	try {
		e.setHomePage(document.domain); 
	} catch(e) {
		alert("Sorry but your browser dosen't support autolinks.")
	} 
}

function EmptyElem(e1)
{
	document.getElementById(e1).value = "";
}

function ChangeStyle(e1, newclass){
	document.getElementById(e1).className = newclass;
}

function OldStyle(e1, oldclass){
	document.getElementById(e1).className = oldclass;
}