function obj1OpenWin(f_oFrom)
{
	var oForm = f_oFrom;
	var iAmount = oForm.fAmount.value;
	var iDuration = oForm.fDuration.options[oForm.fDuration.selectedIndex].value;
	var sParameters, sUrl, sWindowFeatures;
	
	sParameters  = 'uLanguage='		+ sLanguage;
	sParameters += '&uAmount='		+ iAmount;
	sParameters += '&uDuration='	+ iDuration;
	sParameters += '&uRetailer='	+ iRetailer;
	
	sUrl = 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:12px;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: 11px;color: #666666;background-color: #FFFFFF;border: 1px solid #3A73B8;width:38px;text-align:right;padding-right:2px;"';
	var selectstyle = ' style="font-size:12px;width:38px;"';
}

document.writeln('<table border="0" cellspacing="0" cellpadding="1" height="113" width="127">');
document.writeln('	<form name="Microrechner" action="#" method="post" onSubmit="return obj1OpenWin(this);">');
document.writeln('		<tr>');
document.writeln('    	<td bgcolor="#CCCCCC">');
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" bgcolor="F3F3F3">');
document.writeln('										<input type="image" name="fSubmit" value="Berechnen" src="' + sImagePath + '/' + sLanguage + '/animation.gif" width="118" height="27" border="0" vspace="3">');
document.writeln('									</td>');
document.writeln('								</tr>');
document.writeln('								<tr>');
document.writeln('									<td colspan="2" height="3"><img src="' + sImagePath + '/' + sLanguage + '/_clear.gif" alt="" width="1" height="3" border="0"></td>');
document.writeln('								</tr>');
document.writeln('								<tr>');
document.writeln('									<td>');
document.writeln('										<p align="right"><img src="' + sImagePath + '/' + sLanguage + '/amount.gif" alt="Betrag" width="62" height="19" border="0" vspace="1" hspace="1">&nbsp;</p>');
document.writeln('									</td>');
document.writeln('									<td>');
document.writeln('                  	<p><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="F3F3F3">');
document.writeln('										<p align="right"><img src="' + sImagePath + '/' + sLanguage + '/duration.gif" alt="Laufzeit" width="55" height="17" border="0" vspace="1" hspace="1">&nbsp;</p>');
document.writeln('									</td>');
document.writeln('									<td bgcolor="F3F3F3">');
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 colspan="2" align="center"><input type="image" name="fSubmit" value="Berechnen" src="' + sImagePath + '/' + sLanguage + '/calculate.gif" width="112" height="17" vspace="6" 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>');
