function submitJobSearch(urlBegin) {	var market = middleStr(document.location.href, ".nsf/", "/");	var urlBegin = document.location.href + "?OpenDocument&result&";	var val = "";	var jobKinds = "";	for(i = 0; i < document.jobselect.jobkinds.length && val != "all"; ++i) {		if(document.jobselect.jobkinds.options[i].selected) {			val = document.jobselect.jobkinds.options[i].value;			if(jobKinds != "") jobKinds = jobKinds + ",";			jobKinds = jobKinds + val;		}		}	if(val == "all") jobKinds = "";	val = "";	var operationalAreas = "";	for(i = 0; i < document.jobselect.operationalareas.length && val != "all"; ++i) {		if(document.jobselect.operationalareas.options[i].selected) {			val = document.jobselect.operationalareas.options[i].value;			if(operationalAreas != "") operationalAreas = operationalAreas + ",";			operationalAreas = operationalAreas + val;		}		}	if(val == "all") operationalAreas = "";	val = "";	var regions = "";	for(i = 0; i < document.jobselect.regions.length; ++i) {		if(document.jobselect.regions.options[i].selected) {			val = document.jobselect.regions.options[i].value;			if(regions != "") regions = regions + ",";			regions = regions + val;		}		}	if(val == "all") regions = "";	var fullText = document.jobselect.fulltext.value;	//var fullTextDec = escape(fullText);	var fullTextDec = encodeURI(fullText);		var urlExtension = "market=" + market + "&jobkinds=" + jobKinds + "&operationalareas=" + operationalAreas + "&regions=" + regions + "&fulltext=" + fullTextDec;	document.location.href = urlBegin + urlExtension;	//parent.window.scrollTo(1, 1);}function showJobsTradingCompanies() {	var market = middleStr(document.location.href, ".nsf/", "/");	var url = "../../../company/JobOffers.nsf/DealerOrganisationsJobOffers?OpenView&market=" + market;	//openCenterWindow (639, 550, url);	gotoUrlNewWinSizeCenteredScrollbar(url, 615, 550);}/* Job result */function openJob(unid) {	var market = middleStr(document.location.href, ".nsf/", "/");	height = screen.availHeight - 40;	left = Math.round((screen.availWidth - 730)/2);	url = '../../../company/JobOffers.nsf/' + market + "/" + unid + '?OpenDocument';	popUp = window.open(url, 'job', 'width=730,height=' + height + ',scrollbars=yes,toolbars=no,menubars=no,location=no,resizable=yes,left=' + left + ',top=10');	popUp.focus()}/*switch through result pages */function showOtherPage(diff) {	//if ((diff > 0 && currPage + diff <= maxPage) || (diff < 0 && currPage + diff >= 1)) {	document.getElementById("infoDiv" + currPage ).style.display = 'none';			if (diff > 0) {		if (currPage + diff <= maxPage) currPage += diff		else currPage = maxPage;								}	else if (diff < 0) {		if (currPage + diff >= 1) currPage += diff 		else currPage = 1;				}				document.getElementById("infoDiv" + currPage ).style.display = 'block';	document.getElementById("imagecounter").innerHTML = "&nbsp;&nbsp;" + page +  "&nbsp;" + currPage + "&nbsp;" + pageOf +  "&nbsp;" + maxPage + "&nbsp;&nbsp;";	if (document.getElementById("imagecounterbottom")) {		document.getElementById("imagecounterbottom").innerHTML =  "&nbsp;&nbsp;" + page +  "&nbsp;" + currPage + "&nbsp;" + pageOf +  "&nbsp;" + maxPage + "&nbsp;&nbsp;";	}	if (parent.window.location.href.indexOf("porsche.com") != -1) parent.window.scrollTo(0, 0);		//}}