function popurl(sUrl, sWindow, iWidth, iHeight)
{
    oW = null;

	iWidth  = iWidth ? iWidth : (screen.width  - 200);
	iHeight = iHeight ? iHeight : (screen.height - 200);
	oW = window.open(sUrl, sWindow, 'width=' + iWidth + ',height=' + iHeight + ',menubar=no,status=no,resizable=yes,scrollbars=yes');

	iPos_x = (screen.width  - iWidth)  / 2;
	iPos_y = (screen.height - iHeight) / 2;

    if (typeof(oW) == 'undefined' || oW == null) {
        alert('Bitte deaktivieren Sie Ihren Popup-Blocker');
    } else {
    	oW.moveTo(iPos_x, iPos_y);
    	oW.focus();
    }

}


function popurl_info(sUrl, sWindow, iWidth, iHeight, iX, iY)
{
    oW = null;

	iWidth  = iWidth ? iWidth : (screen.width  - 200);
	iHeight = iHeight ? iHeight : (screen.height - 200);
	oW = window.open(sUrl, sWindow, 'width=' + iWidth + ',height=' + iHeight + ',menubar=no,status=no,resizable=yes,scrollbars=yes');

    if (typeof(oW) == 'undefined' || oW == null) {
        alert('Bitte deaktivieren Sie Ihren Popup-Blocker');
    } else {
    	oW.moveTo(iX, iY);
    	oW.focus();
    }

}


function setZip(zip, f_name)
{

    if (oF = isForm(f_name)) {


        if (oE = isElement('zip', oF)) {

            oE.value = zip;
            //oF.elements.zip_or_city[0].checked = true;

            oF.submit();

        }



    }
}

var debugFunc = function(t) {
    alert(t.responseText);
}