function obj1OpenWin(f_oFrom, f_sPopUpPath)
{
	var oForm			= f_oFrom;
	var iAmount		= oForm.fAmount.value;
	var iDuration	= oForm.fDuration.options[oForm.fDuration.selectedIndex].value;
	var sParameters, sUrl, sWindowFeatures;
	
	sParameters  = 'ks='	+ iAmount;
	sParameters += '&lz='	+ iDuration;
	
	if(f_sPopUpPath.indexOf("?") == -1)
	{
		sUrl = f_sPopUpPath + "?" + sParameters;
	}
	else
	{
		sUrl = f_sPopUpPath + "&" + sParameters;
	}
	
	sWindowFeatures = 'width=450,height=670,toolbar=0,location=0,directories=0,status=0,menuBar=0,scrollBars=0,resizable=0,top=30,left=30';
	
	obj1PopUp = window.open(sUrl, "obj1PopUpName", sWindowFeatures);
	obj1PopUp.focus();
	
	return false;
}


var agt = navigator.appVersion.toLowerCase(); 
var sBrowser = "IE";
var sVersion = "3";
var bMac = false;

if (agt.indexOf("mac")!=-1) bMac = true;

if (navigator.appName == "Netscape")
{
sBrowser = "NS";
if (parseInt(navigator.appVersion) >= 3 ) sVersion = 3;
if (parseInt(navigator.appVersion) >= 4 ) sVersion = 4;
if (parseInt(navigator.appVersion) >= 5) sVersion = 5;
}
else if (navigator.appName == "Microsoft Internet Explorer")
{
sBrowser = "IE";
if (parseInt(navigator.appVersion) >= 4 ) sVersion = 4;
if (agt.indexOf("msie 5.0") !=-1 )  sVersion = 5;
if (agt.indexOf("msie 5.5") !=-1 )  sVersion = 5.5;
if (agt.indexOf("msie 6.0") !=-1 )  sVersion = 6;		
} 
else if (navigator.appName == "Opera") 
{
sBrowser = "OP";
sVersion = 2;
}

if(bMac == true) {
 var inputstyle 	= '';
var selectstyle = ' style="font-size:11px;width:45px;"';
} else if (sBrowser == "NS" && sVersion < 5) {
 var inputstyle 	= '';
var selectstyle = ''; 
} else {
 var inputstyle 	= ' style="font-family: Arial, Helvetica, Verdana, Geneva, sans-serif;font-size: 12px;color: #000000;background-color: #FFFFFF;border: 1px solid #c3c3c3;width:42px;text-align:right;padding-right:2px;"';
var selectstyle = ' style="font-family: Arial, Helvetica, Verdana, Geneva, sans-serif;font-size: 11px;width:38px;border: 1px solid #c3c3c3;"';
}

document.writeln('<table border="0" cellspacing="0" cellpadding="1" width="127" height="136">');
document.writeln('	<form name="Microrechner" action="#" method="post" onSubmit="return obj1OpenWin(this,\''+sPopUpPath+'\');">');
document.writeln('		<tr>');
document.writeln('    	<td bgcolor="#969a9e">');
document.writeln('				<table border="0" cellspacing="0" cellpadding="0" width="100%">');
document.writeln('					<tr>');
document.writeln('						<td bgcolor="#FFFFFF" align="center">');
document.writeln('							<table border="0" cellspacing="0" cellpadding="0" width="100%">');
document.writeln('								<tr>');
document.writeln('									<td colspan="2" align="center" style="vertical-align: middle !important; vertical-align: bottom;"bgcolor="#3b73b9" height="27">');
document.writeln('										<input type="image" name="fSubmit" value="Berechnen" src="'+sFileDir+'/gemoneybank.gif" border="0">');
document.writeln('									</td>');
document.writeln('								</tr>');
document.writeln('								<tr>');
document.writeln('									<td bgcolor="#ECECEC" colspan="2" align="center" height="20" valign="middle"><a style="color: #999999; text-decoration: none; font-family: Arial, Helvetica, sans-serif; font-size: 11px; font-weight: bold;" href="http://www.gemoneybank.ch/" target="_blank" title="Finanzierung GE Money Bank">Finanzierung</a><span style="color: #999999; text-decoration: none; font-family: Arial, Helvetica, sans-serif; font-size: 11px;"> /<span>&nbsp; <a style="color: #999999; text-decoration: none; font-family: Arial, Helvetica, sans-serif; font-size: 11px; font-weight: bold;" href="http://www.gemoneybank.ch/de/kredite/index.html" target="_blank" title="Kredit GE Money Bank">Kredit</a></td>');
document.writeln('								</tr>');
document.writeln('								<tr>');
document.writeln('									<td colspan="2" height="4"></td>');
document.writeln('								</tr>');
document.writeln('								<tr>');
document.writeln('									<td valign="middle" height="28">');
document.writeln('										<p align="right"><img src="'+sFileDir+'/Kredit_Wunschbetrag.gif" alt="Betrag" border="0" hspace="4"></p>');
document.writeln('									</td>');
document.writeln('									<td valign="middle">');
document.writeln('                  	<p style="padding-right: 4px;"><input type="text" name="fAmount" value="' + iAmount + '" size="5" maxlength="5"' + inputstyle + '></P>')
document.writeln('									</td>');
document.writeln('								</tr>');
document.writeln('								<tr>');
document.writeln('									<td bgcolor="#F6F6F6" valign="middle" height="28">');
document.writeln('										<p align="right"><img src="'+sFileDir+'/Kredit_Laufzeit.gif" alt="Laufzeit" border="0" hspace="4"></p>');
document.writeln('									</td>');
document.writeln('									<td bgcolor="#F6F6F6">');
document.writeln('										<p>');
document.writeln('					  					<select name="fDuration"' + selectstyle + '>');
document.writeln('						  					<option value="12"' + (iDuration==12 ? ' selected' : '') + '>12</option>');
document.writeln('												<option value="24"' + (iDuration==24 ? ' selected' : '') + '>24</option>');
document.writeln('												<option value="36"' + (iDuration==36 ? ' selected' : '') + '>36</option>');
document.writeln('												<option value="48"' + (iDuration==48 ? ' selected' : '') + '>48</option>');
document.writeln('												<option value="60"' + (iDuration==60 ? ' selected' : '') + '>60</option>');
document.writeln('											</select>');
document.writeln(' 										</p>');
document.writeln('									</td>');
document.writeln('								</tr>');
document.writeln('								<tr>');
document.writeln('									<td bgcolor="#F6F6F6" colspan="2" height="4"></td>');
document.writeln('								</tr>');
document.writeln('								<tr>');
document.writeln('									<td bgcolor="#CCCCCC" colspan="2" align="center"><input type="image" name="fSubmit" value="Berechnen" src="'+sFileDir+'/Kredit_Berechnen.gif" vspace="4" border="0"></td>');
document.writeln('								</tr>');
document.writeln('							</table>');
document.writeln('						</td>');
document.writeln('					</tr>');
document.writeln('				</table>');
document.writeln('			</td>');
document.writeln('		</tr>');
document.writeln('	</form>');
document.writeln('</table>');
