// prevent onChange select boxes from submitting null id values (navpages)
function check_select_null_id(in1,in2,thisform) {
        var isOK = false;
        var da_string= 'document.'+in1+'.'+in2+'.selectedIndex'
        var ex=eval(da_string);
        var why='document.'+in1+'.'+in2+'['+ex+'].selected=true'
        var str2='document.'+in1+'.'+in2+'['+ex+'].value'
        var cuz=eval(str2)
        if (cuz == ''){
                isOK=false;
                var why='document.'+in1+'.'+in2+'[0].selected=true';
                eval(why);
				return isOK;
        }       
        else {
                isOK=true;
				var formname='document.'+in1;
				thisform.submit();
        }
        return isOK;
}

function openWin (URL,Wid,Hei) {
	aWindow = window.open(URL,"OpenWin",
        'toolbar=no,status=no,scrollbars=yes,resizable=yes,menubar=no,width=' + openWin.arguments[1] +
        ',height=' + openWin.arguments[2]);
}

function openWinToolbar (URL,Wid,Hei) {
     aWindow = window.open(URL,"_blank",
        'toolbar=yes,status=no,scrollbars=yes,resizable=yes,menubar=no,width=' + openWinToolbar.arguments[1] +
        ',height=' + openWinToolbar.arguments[2]);
}