UIWinCount = 0;
function UIWin(){return "UIw" + ( new Date() ). valueOf() + "UIw" + ( UIWinCount ++ );}
function handleOpenerClick( _newLoc )
{	
	if ( !window.name){window.name=UIWin();}
	var queryStr = new String(location.search.substring(1));
	var pGenname = '';
	if(queryStr.indexOf('pwinname') > -1)
	{
		pGenname = queryStr.slice(queryStr.indexOf('pwinname=') + 9, queryStr.length);
	}
	var joinQuery = ( _newLoc.indexOf('?') > -1 ) ? '&' : '?';
	newwin = window.open(_newLoc+joinQuery+'pwinname='+window.name, pGenname);
	newwin.focus();
}

function jsCheckRadio1(n) {
 document.frm.seltype1[n].checked=true;
}
function jsSetFocus1(n) {
if (n==0) document.frm.pc1.focus();
else if (n==1) document.frm.straat1.focus();
else if (n==2) document.frm.poiplaats1.focus();
}
function jsCheckRadio2(n) {
document.frm.seltype2[n].checked=true;
}
function jsSetFocus2(n) {
if (n==0) document.frm.pc2.focus();
else if (n==1) document.frm.straat2.focus();
else if (n==2) document.frm.poiplaats2.focus();
}
function jsSubmitForm(n) {
document.frm.action.value = n;
document.frm.submit();
}
