//for popup windows

//to call: onclick="openWin(this.href,'nameit'); return false;"

function openWin(html,name) {
	var n=open(html,name,'directories=yes,location=yes,menubar=yes,scrollbars=yes,status=yes,toolbar=yes,resizable=yes');	
	n.focus();
}


//to call: onclick="openWin2(this.href,'nameit', width, height); return false;"

function openWin2( html, name, wval, hval ) {
	var x=open( html, name, 'width='+wval+',height='+hval+',directories=no,location=yes,menubar=no,scrollbars=yes,status=yes,toolbar=no,resizable=yes');
	x.moveTo(((screen.width/2)-(wval/2)),((screen.height/2)-(hval/2)));
	x.focus();
}
