
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(); }
}



//Coloured fields
dom = (document.getElementById) ? 1 : 0;
function activatefield(what){
if (dom){
what.style.backgroundColor='#FFFFCC';
what.style.color='#000000';}
}
function deactivatefield(what){
if (dom){
what.style.backgroundColor='';
what.style.color='';}
}

//Validation flash

function Generateobj(str)
{
 document.write(str);
}

if(document.getElementById&&!document.all){ns6=1;}else{ns6=0;}
var agtbrw=navigator.userAgent.toLowerCase();
var operaaa=(agtbrw.indexOf('opera')!=-1);
var head="display:''";
var folder='';

function expandit(curobj,hide){
if(document.getElementById(curobj)){
  folder=document.getElementById(curobj).style;

  }else{

if(ns6==1||operaaa==true){
	folder=curobj.nextSibling.nextSibling.style;
}else{
	folder=document.all[curobj.sourceIndex+1].style;
}
   }
if (folder.display=="none"){folder.display="";}else{folder.display="none";}
if(document.getElementById(hide)){
	hidden=document.getElementById(hide).style;
	if (hidden.display=="none"){hidden.display="";}else{hidden.display="none";}
}
}

function setFlashWidth(divid, newW){
	document.getElementById(divid).style.width = newW+"px";
}
function setFlashHeight(divid, newH){
	document.getElementById(divid).style.height = newH+"px";
}
function setFlashSize(divid, newW, newH){
	setFlashWidth(divid, newW);
	setFlashHeight(divid, newH);
}
