function showhideRow(iID){
	var cRow = document.getElementById("row"+iID)
	var cSpan = document.getElementById("span"+iID)
	if(cSpan){
		if(cSpan.style.display=="none"){
			cSpan.style.display="block";
			cSpan.style.visibility = "visible";
			cRow.style.paddingBottom = 2;
		}
		else{
			cSpan.style.display="none";
			cSpan.style.visibility = "hidden";
			cRow.style.paddingBottom = 0;
		}
	}
}

function showRow(iID){
	var numargs = arguments.length
	for(i=0;i<numargs;i++){ 
		var cRow = document.getElementById("row"+arguments[i])
		var cSpan = document.getElementById("span"+arguments[i])
		if(cSpan){
			cSpan.style.display="block";
			cSpan.style.visibility = "visible";
			cRow.style.paddingBottom = 2;
		}
	}
}

function showVideo(){
	document.getElementById('mySWImage').style.display = 'none';
	document.getElementById('myFlashVideo').style.display = 'block';
}

function setPageBrowser(oPageBrowserForm, iStep){
	oPageBrowserForm.iFirstRow.value = iStep;
	oPageBrowserForm.submit();
}

function setEndPrice(iID, sFiledPrice, sFiledRecPrice){
	var extraPrice = eval("document.forms['prodForm'].extra"+iID).value.replace(",",".");
	eval("document.forms['prodForm'].extra"+iID).value = extraPrice;
	var startPrice = eval("document.forms['prodForm'].startPrice"+iID).value;
	if(extraPrice!=""&&startPrice!=""){
		if(!isNaN(extraPrice)){
			eval("document.forms['prodForm'].endPrice"+iID).value = startPrice*extraPrice;
		}
		else{
			alert(resellerNotNummerAlert);
			eval("document.forms['prodForm'].extra"+iID).focus();
			eval("document.forms['prodForm'].extra"+iID).select();
		}
	}
	else{
		
	} 
}

function getPDF(){
	
}

function checkContactForm(oForm){
	if(oForm.Namn.value==""){
		alert(noNameML);
		oForm.Namn.focus()
		return false;
	}	
	return checkMail(oForm.Email.value, oForm.Email)
}

function checkMail(sInputValue,oFormField){
	var myRe = /[a-z0-9_.=-]+@([a-z0-9-]+\.)+([a-z]{2,3})/i;
	if (!(sInputValue).match(myRe))	{
		alert(emailErrorML)
		oFormField.focus()
		return false
	}
	else {
		return true
	}
}
