function scqs(ak, ar, t, st){

var l="de/";
var lang="de";
var u="http://www.sunnycars.at/quicksearch/";

ar=(void 0!=ar)?ar:'';
t=(void 0!=t)?t:'_blank';
st=(void 0!=st)?st:'';

var w = function(s) { document.writeln(s); };
var x = function(t) { document.write(t); };

w('<style>');
w('#bg{background:url( '+u+l+'version_1_bg.jpg );width:252px;height:180px;font-family:Arial,Verdana,Helvetica,sans-serif;font-size:11px;color:#ffffff;}');
w('#chimg{padding:0px 0px 0px 143px;}');
w('#head{padding:5px 0px 0px 10px;*padding:7px 0px 0px 10px;}');
w('.headBold{color:#016e69;font-weight:bold;}');
w('.headNormal,.sep{color:#016e69;font-weight:normal;}');
w('#location{color:#006f68;padding:17px 0px 0px 10px;}');
w('#loc{width:226px;height:14px;background:#59a29b;border:none;font-size:11px;color:#ffffff;padding-left:5px;}');
w('#dates{padding:11px 0px 0px 10px;*padding:9px 0px 0px 10px;}');
w('.datestable{width:232px;*width:234px;}');
w('#fromDate,#toDate{width:51px;height:15px;line-height:14px;background:#59a29b;border:none;font-size:11px;color:#ffffff;padding-left:5px;}');
w('#button{float:right;margin:7px 9px 0px 100px;*margin:8px 7px 0px 100px;-margin:8px 3px 0px 115px;}');
w('#sendm{margin:0px;padding:0px;background:url( '+u+l+'button1-m.gif );background-repeat:repeat-x;}');
w('#sendm{height:21px;}');
w('#button div{float:left;height:21px;}');
w('.sp10{width:10px;}');
w('a{color:#000000;text-decoration:none;font-weight:bold;font-size:11px;line-height:17px;*line-height:15px;}');
w('</style>');

w('<script src="'+u+'datepicker/jquery-1.2.6.min.js" type="text/javascript"></script>');
w('<script src="'+u+'datepicker/ui.datepicker.js" type="text/javascript"></script>');
w('<script src="'+u+'datepicker/ui.datepicker-regional_'+lang+'.js" type="text/javascript"></script>');
w('<script src="'+u+l+'lang_'+lang+'.js" type="text/javascript"></script>');

w('<link rel="STYLESHEET" type="text/css" href="'+u+'datepicker/ui.datepicker.css">');

w('<script>');


	
w('	function goToUrl(){');
w('		loc=document.getElementById(\"loc\").value;');
w('		fromDate=document.getElementById(\"fromDate\").value;');
w('		toDate=document.getElementById(\"toDate\").value;');

w('		yfd=fromDate.split(".")[2]');
w('		yfd="20"+yfd;');
w('		mfd=fromDate.split(".")[1]');
w('		dfd=fromDate.split(".")[0]');

w('		ytd=toDate.split(".")[2]');
w('		ytd="20"+ytd;');
w('		mtd=toDate.split(".")[1]');
w('		dtd=toDate.split(".")[0]');

w('		fromDate=dfd+mfd+yfd');
w('		toDate=dtd+mtd+ytd');

w('		url=""+dest+"ak='+ak+'&ar='+ar+'&pl=\"+loc+\"&pd=\"+fromDate+\"&dd=\"+toDate+\"&l='+lang+'\";');
w('		newwin=window.open(url,\''+t+'\');');
w('	}');

w('	var rand = Math.ceil(7 * Math.random());');

w('window.onload=function(){');
w('	setTimeout("dp()",1)');
w('}');
	
w('	function dp(){');

w('	$(".headBold").text(headBold);');
w('	$(".sep").text(sep);');
w('	$(".headNormal").text(headNormal);');
w('	document.getElementById("loc").value=locT;');
w('	$(".fromT").text(fromT);');
w('	$(".toT").text(toT);');
w('	$("#send").text(send);');

w('	var zeits = new Date();');
w('	var days = zeits.getDate();');
w('	var mons = zeits.getMonth();');
w('	var years = zeits.getYear();');

w('	$(".date-pick-from").attachDatepicker({');
w('		"showAnim":"show",');
w('		"buttonImageOnly":true,');
w('		"speed":"",');
w('		"buttonImage":"'+u+l+'calicon.gif",');
w('		"minDate":"new Date(years, mons-1, days)",');
w('		"changeYear":false,');
w('		"showOn":"button",');
w('		"closeAtTop":false,');
w('		"changeMonth":false');
w('	});');
w('	$(".date-pick-to").attachDatepicker({');
w('		"showAnim":"show",');
w('		"buttonImageOnly":true,');
w('		"speed":"",');
w('		"buttonImage":"'+u+l+'calicon.gif",');
w('		"minDate":"new Date(years, mons-1, days)",');
w('		"changeYear":false,');
w('		"showOn":"button",');
w('		"closeAtTop":false,');
w('		"changeMonth":false');
w('	});');

w('var isFF = false;');
w('if(navigator.userAgent.indexOf("Gecko")!=-1)isFF=true;');

w('	var zeit = new Date();');
w('	var day = zeit.getDate()+3;');
w('	day = day.toString();');
w('	var mon = zeit.getMonth()+1;');
w('	mon = mon.toString();');
w('	var year = zeit.getYear().toString();');

w('	if(isFF){');
w('	yearshort = year.substr(1,2);');
w('	}else{');
w('	yearshort = year.substr(2,2);');
w('	}');

w('	if(day.length<2)day="0"+day;');
w('	if(mon.length<2)mon="0"+mon;');
w('	var startdate = day+"."+mon+"."+yearshort;');
w('	var today = zeit.getTime();');
w('	var nextWeek = today + (10 * 24 * 60 * 60 * 1000);');
w('	nextWeek=new Date(nextWeek);');
w('	var nwday = nextWeek.getDate().toString();');
w('	var nwmon = nextWeek.getMonth()+1;');
w('	nwmon = nwmon.toString();');
w('	var nwyear = nextWeek.getYear().toString();');

w('	if(isFF){');
w('	nwyearshort = nwyear.substr(1,2);');
w('	}else{');
w('	nwyearshort = nwyear.substr(2,2);');
w('	}');

w('	if(nwday.length<2)nwday="0"+nwday;');
w('	if(nwmon.length<2)nwmon="0"+nwmon;');
w('	var nwstartdate = nwday+"."+nwmon+"."+nwyearshort;');
w('	document.getElementById("fromDate").value=startdate;');
w('	document.getElementById("toDate").value=nwstartdate;');
w('	}');
	
w('</script>');

w('<form>');
w('<div id="bg">');
w('	<div id="chimg">');
w('		<script>');
w('			document.write(\'<img src=\"'+u+l+'chimg_\'+rand+\'.jpg\" width="109" height="53" alt="" border="0">\');');
w(' 	</script>');
w('	</div>');
w('	<div id="head">');
w('		<span class="headBold"></span><span class="sep"></span><span class="headNormal"></span>');
w('	</div>');
w('	<div id="location">');
w('		<input value="" id="loc"  onFocus="if(this.value==locT)this.value=\'\';" onBlur="if(this.value==\'\')this.value=locT;">');
w('	</div>');
w('	<div id="dates">');
w('		<table cellpadding="0" cellspacing="0" border="0" class="datestable">');
w('			<tr>');
w('				<td class="fromT"></td>');
w('				<td width="10"><div class="sp10"></div></td>');
w('				<td><div style="width:80px;"><input id="fromDate" class="date-pick-from"></div></td>');
w('				<td width="100%"></td>');
w('				<td class="toT"></td>');
w('				<td width="10"><div class="sp10"></div></td>');
w('				<td align="right"><div style="width:80px;"><input id="toDate" class="date-pick-to"></div></td>');
w('			</tr>');
w('		</table>');
w('	</div>');
w('	<div id="button">');
w('			<div id="sendl"><a href="javascript:goToUrl();"><img src="'+u+l+'button1-l.gif" width="9" height="21" alt="" border="0"></a></div><div id="sendm"><a href="javascript:goToUrl();" id="send"></a></div><div id="sendr"><a href="javascript:goToUrl();"><img src="'+u+l+'button1-r.gif" width="10" height="21" alt="" border="0"></a></div>');
w('	</div>');
w('</div>');
w('</form>');

}