/**
	startsearch.js - for startsearch.php
*/

function openPasswdNew()  {
	var link = DOWNSERVER+"{SODOWNSERVER}/customer/newCustomer_index.php?sprache="+language;
	parent.openPopup(link,'password','408','575',language);
}
function openPasswdLost() {
	var link = "{SODOWNSERVER}/customer/pw_forgot.php?sprache="+language;
	parent.openPopup(link,'password','408','575',language);
}
function switchDiv(ct,la) {
	oElem=document.getElementById('selcountry');
	for(i=0;i<oElem.length;i++) {
		if(oElem.options[i].value == ct) 
			oElem.options[i].selected=true;
		else
			oElem.options[i].selected=false;
	}
	oElem=document.getElementById('selsprache');
	if (oElem) {
		for(i=0;i<oElem.length;i++) {
			if(oElem.options[i].value == la) 
				oElem.options[i].selected=true;
			else
				oElem.options[i].selected=false;
		}
	}
	showHideDiv();
}

function showHideDiv() {
	oElem=document.getElementById('chooselang');
	var cStyle='none';
	if (oElem.style.display=='none')
		cStyle='block';
	if(oElem)
		oElem.style.display=cStyle;			
}

function checkSubmit() {
	showHideDiv();
	if ((document.frmCountry.actcountry.value != document.frmCountry.selcountry.value) || 
	   (document.frmCountry.actsprache.value != document.frmCountry.selsprache.value)) {
		return(true);
	}
	return(false);	
}
function sfopen(elem,cview) {
		parent.openView(cview);
		//parent.sfopen(elem,cview);
}
