// JavaScri
	var menu = '<div class="textomenu"><table border="0" cellpadding="0" cellspacing="0" width="826" align="center"><tr><td><img src="http://www.fontshop.se/menuimgs/spacer.gif" width="2" height="1" border="0" alt=""></td><td><img src="http://www.fontshop.se/menuimgs/spacer.gif" width="23" height="1" border="0" alt=""></td><td><img src="http://www.fontshop.se/menuimgs/spacer.gif" width="3" height="1" border="0" alt=""></td><td><img src="http://www.fontshop.se/menuimgs/spacer.gif" width="35" height="1" border="0" alt=""></td><td><img src="http://www.fontshop.se/menuimgs/spacer.gif" width="3" height="1" border="0" alt=""></td><td><img src="http://www.fontshop.se/menuimgs/spacer.gif" width="64" height="1" border="0" alt=""></td><td><img src="http://www.fontshop.se/menuimgs/spacer.gif" width="3" height="1" border="0" alt=""></td><td><img src="http://www.fontshop.se/menuimgs/spacer.gif" width="131" height="1" border="0" alt=""></td><td><img src="http://www.fontshop.se/menuimgs/spacer.gif" width="3" height="1" border="0" alt=""></td><td><img src="http://www.fontshop.se/menuimgs/spacer.gif" width="83" height="1" border="0" alt=""></td><td><img src="http://www.fontshop.se/menuimgs/spacer.gif" width="3" height="1" border="0" alt=""></td><td><img src="http://www.fontshop.se/menuimgs/spacer.gif" width="52" height="1" border="0" alt=""></td><td><img src="http://www.fontshop.se/menuimgs/spacer.gif" width="3" height="1" border="0" alt=""></td><td><img src="http://www.fontshop.se/menuimgs/spacer.gif" width="66" height="1" border="0" alt=""></td><td><img src="http://www.fontshop.se/menuimgs/spacer.gif" width="3" height="1" border="0" alt=""></td><td><img src="http://www.fontshop.se/menuimgs/spacer.gif" width="63" height="1" border="0" alt=""></td><td><img src="http://www.fontshop.se/menuimgs/spacer.gif" width="3" height="1" border="0" alt=""></td><td><img src="http://www.fontshop.se/menuimgs/spacer.gif" width="65" height="1" border="0" alt=""></td><td><img src="http://www.fontshop.se/menuimgs/spacer.gif" width="3" height="1" border="0" alt=""></td><td><img src="http://www.fontshop.se/menuimgs/spacer.gif" width="59" height="1" border="0" alt=""></td><td><img src="http://www.fontshop.se/menuimgs/spacer.gif" width="2" height="1" border="0" alt=""></td><td><img src="http://www.fontshop.se/menuimgs/spacer.gif" width="1" height="1" border="0" alt=""></td><td><img src="http://www.fontshop.se/menuimgs/spacer.gif" width="63" height="1" border="0" alt=""></td><td><img src="http://www.fontshop.se/menuimgs/spacer.gif" width="3" height="1" border="0" alt=""></td><td><img src="http://www.fontshop.se/menuimgs/spacer.gif" width="58" height="1" border="0" alt=""></td><td><img src="http://www.fontshop.se/menuimgs/spacer.gif" width="3" height="1" border="0" alt=""></td><td><img src="http://www.fontshop.se/menuimgs/spacer.gif" width="26" height="1" border="0" alt=""></td><td><img src="http://www.fontshop.se/menuimgs/spacer.gif" width="1" height="1" border="0" alt=""></td></tr><tr><td rowspan="3"><img name="ULTIMOMENU_r1_c1" src="http://www.fontshop.se/menuimgs/ULTIMOMENU_r1_c1.jpg" width="2" height="136" border="0" alt=""></td><td colspan="20"><img name="ULTIMOMENU_r1_c2" src="http://www.fontshop.se/menuimgs/ULTIMOMENU_r1_c2.jpg" width="670" height="106" border="0" alt=""></td><td colspan="6"><a href="http://www.fontshop.se/galeria/publica/carrito.php" target="_parent" class="nav_usuario18"><img name="ULTIMOMENU_r1_c22" src="http://www.fontshop.se/menuimgs/ULTIMOMENU_r1_c22.jpg" width="189" height="106" border="0" alt=""></a></td></tr><tr><td><img name="ULTIMOMENU_r2_c2" src="http://www.fontshop.se/menuimgs/ULTIMOMENU_r2_c2.jpg" width="23" height="14" border="0" alt=""></td><td><img name="ULTIMOMENU_r2_c3" src="http://www.fontshop.se/menuimgs/ULTIMOMENU_r2_c3.jpg" width="3" height="14" border="0" alt=""></td><td><a href="http://www.fontshop.se/index.htm" class="nav_usuario" target="_parent">HEM</a></td><td><img name="ULTIMOMENU_r2_c5" src="http://www.fontshop.se/menuimgs/ULTIMOMENU_r2_c5.jpg" width="3" height="14" border="0" alt=""></td><td><a href="http://www.fontshop.se/Fonts/public/index.php" class="nav_usuario1" target="_parent">TYPSNITT</a></td><td><img name="ULTIMOMENU_r2_c7" src="http://www.fontshop.se/menuimgs/ULTIMOMENU_r2_c7.jpg" width="3" height="14" border="0" alt=""></td><td><a href="http://www.fontshop.se/fontfolio.htm" class="nav_usuario7" target="_parent">TYPSNITTSSAMLINGAR</a></td><td><img name="ULTIMOMENU_r2_c9" src="http://www.fontshop.se/menuimgs/ULTIMOMENU_r2_c9.jpg" width="3" height="14" border="0" alt=""></td><td><a href="http://www.fontshop.se/typsnitt.htm" class="nav_usuario2" target="_parent">OM&nbsp;TYPSNITT</a></td><td><img name="ULTIMOMENU_r2_c11" src="http://www.fontshop.se/menuimgs/ULTIMOMENU_r2_c11.jpg" width="3" height="14" border="0" alt=""></td><td><a href="http://www.fontshop.se/bilder.html" class="nav_usuario3" target="_parent">BILDER</a></td><td><img name="ULTIMOMENU_r2_c13" src="http://www.fontshop.se/menuimgs/ULTIMOMENU_r2_c13.jpg" width="3" height="14" border="0" alt=""></td><td><a href="http://www.fontshop.se/suitcasefusion.htm" class="nav_usuario4" target="_parent">PROGRAM</a></td><td><img name="ULTIMOMENU_r2_c15" src="http://www.fontshop.se/menuimgs/ULTIMOMENU_r2_c15.jpg" width="3" height="14" border="0" alt=""></td><td><a href="http://www.fontshop.se/pantone.htm" class="nav_usuario5" target="_parent">PANTONE</a></td><td><img name="ULTIMOMENU_r2_c17" src="http://www.fontshop.se/menuimgs/ULTIMOMENU_r2_c17.jpg" width="3" height="14" border="0" alt=""></td><td><a href="http://www.fontshop.se/typsnittsdesign.htm" class="nav_usuario6" target="_parent">TJ&Auml;NSTER</a></td><td><img name="ULTIMOMENU_r2_c19" src="http://www.fontshop.se/menuimgs/ULTIMOMENU_r2_c19.jpg" width="3" height="14" border="0" alt=""></td><td><a href="http://www.fontshop.se/bestall.php" class="nav_usuario8" target="_parent">BEST&Auml;LL</a></td><td colspan="2"><img name="ULTIMOMENU_r2_c21" src="http://www.fontshop.se/menuimgs/ULTIMOMENU_r2_c21.jpg" width="3" height="14" border="0" alt=""></td><td><a href="http://www.fontshop.se/kontakt.htm" class="nav_usuario9" target="_parent">KONTAKT</a></td><td><img name="ULTIMOMENU_r2_c24" src="http://www.fontshop.se/menuimgs/ULTIMOMENU_r2_c24.jpg" width="3" height="14" border="0" alt=""></td><td><a href="http://www.fontshop.se/customfonts.html" class="nav_usuario10" target="_parent">CUSTOM&nbsp;FONTS</a></td><td><img name="ULTIMOMENU_r2_c26" src="http://www.fontshop.se/menuimgs/ULTIMOMENU_r2_c26.jpg" width="3" height="14" border="0" alt=""></td><td><img name="ULTIMOMENU_r2_c27" src="http://www.fontshop.se/menuimgs/ULTIMOMENU_r2_c27.jpg" width="26" height="14" border="0" alt=""></td><td><img src="http://www.fontshop.se/menuimgs/spacer.gif" width="1" height="14" border="0" alt=""></td></tr><tr><td colspan="26"><img name="ULTIMOMENU_r3_c2" src="http://www.fontshop.se/menuimgs/ULTIMOMENU_r3_c2.jpg" width="859" height="16" border="0" alt=""></td><td><img src="http://www.fontshop.se/menuimgs/spacer.gif" width="1" height="16" border="0" alt=""></td></tr></table>';

var imagenames = [];
imagenames[0] = "http://www.fontshop.se/menuimgs/spacer.gif";
imagenames[1] = "images/logo.jpg";
imagenames[2] = "images/picture1.gif";
imagenames[3] = "images/picture2.gif";
imagenames[4] = "images/picture3.gif";
imagenames[5] = "images/rule.gif";
imagenames[6] = "images/button01.gif";
imagenames[7] = "images/button02.gif";
imagenames[8] = "images/button03.gif";
imagenames[9] = "images/footer.gif";
imagenames[10] = "images/gradient.gif";
imagenames[11] = "images/sphere.gif";
// Create new image object for each image
// and then assign a path to the src, preloading
// the actual image
function preload(imagenames) {
var images = [];
for (var i=0; i < imagenames.length; i++) {
images[i] = new Image();
images[i].src = imagenames[i];
}
}
// Run script, preloading images, before document loads
// (alternately, place call in an onLoad in body tag to
// preload images after document loads
preload(imagenames);
function changeText3(){
	var oldHTML = document.getElementById('para').innerHTML;
	var newHTML = '<table border="0" cellpadding="0" cellspacing="0" width="826" align="center"><tr><td><img src="http://www.fontshop.se/menuimgs/spacer.gif" width="2" height="1" border="0" alt=""></td><td><img src="http://www.fontshop.se/menuimgs/spacer.gif" width="23" height="1" border="0" alt=""></td><td><img src="http://www.fontshop.se/menuimgs/spacer.gif" width="3" height="1" border="0" alt=""></td><td><img src="http://www.fontshop.se/menuimgs/spacer.gif" width="35" height="1" border="0" alt=""></td><td><img src="http://www.fontshop.se/menuimgs/spacer.gif" width="3" height="1" border="0" alt=""></td><td><img src="http://www.fontshop.se/menuimgs/spacer.gif" width="64" height="1" border="0" alt=""></td><td><img src="http://www.fontshop.se/menuimgs/spacer.gif" width="3" height="1" border="0" alt=""></td><td><img src="http://www.fontshop.se/menuimgs/spacer.gif" width="131" height="1" border="0" alt=""></td><td><img src="http://www.fontshop.se/menuimgs/spacer.gif" width="3" height="1" border="0" alt=""></td><td><img src="http://www.fontshop.se/menuimgs/spacer.gif" width="83" height="1" border="0" alt=""></td><td><img src="http://www.fontshop.se/menuimgs/spacer.gif" width="3" height="1" border="0" alt=""></td><td><img src="http://www.fontshop.se/menuimgs/spacer.gif" width="52" height="1" border="0" alt=""></td><td><img src="http://www.fontshop.se/menuimgs/spacer.gif" width="3" height="1" border="0" alt=""></td><td><img src="http://www.fontshop.se/menuimgs/spacer.gif" width="66" height="1" border="0" alt=""></td><td><img src="http://www.fontshop.se/menuimgs/spacer.gif" width="3" height="1" border="0" alt=""></td><td><img src="http://www.fontshop.se/menuimgs/spacer.gif" width="63" height="1" border="0" alt=""></td><td><img src="http://www.fontshop.se/menuimgs/spacer.gif" width="3" height="1" border="0" alt=""></td><td><img src="http://www.fontshop.se/menuimgs/spacer.gif" width="65" height="1" border="0" alt=""></td><td><img src="http://www.fontshop.se/menuimgs/spacer.gif" width="3" height="1" border="0" alt=""></td><td><img src="http://www.fontshop.se/menuimgs/spacer.gif" width="59" height="1" border="0" alt=""></td><td><img src="http://www.fontshop.se/menuimgs/spacer.gif" width="2" height="1" border="0" alt=""></td><td><img src="http://www.fontshop.se/menuimgs/spacer.gif" width="1" height="1" border="0" alt=""></td><td><img src="http://www.fontshop.se/menuimgs/spacer.gif" width="63" height="1" border="0" alt=""></td><td><img src="http://www.fontshop.se/menuimgs/spacer.gif" width="3" height="1" border="0" alt=""></td><td><img src="http://www.fontshop.se/menuimgs/spacer.gif" width="58" height="1" border="0" alt=""></td><td><img src="http://www.fontshop.se/menuimgs/spacer.gif" width="3" height="1" border="0" alt=""></td><td><img src="http://www.fontshop.se/menuimgs/spacer.gif" width="26" height="1" border="0" alt=""></td><td><img src="http://www.fontshop.se/menuimgs/spacer.gif" width="1" height="1" border="0" alt=""></td></tr><tr><td rowspan="3"><img name="ULTIMOMENU_r1_c1" src="http://www.fontshop.se/menuimgs/ULTIMOMENU_r1_c1.jpg" width="2" height="136" border="0" alt=""></td><td colspan="20"><img name="ULTIMOMENU_r1_c2" src="http://www.fontshop.se/menuimgs/ULTIMOMENU_r1_c2.jpg" width="670" height="106" border="0" alt=""></td><td colspan="6"><a href="http://www.fontshop.se/galeria/publica/carrito.php" target="_parent" class="nav_usuario18"><img name="ULTIMOMENU_r1_c22" src="http://www.fontshop.se/menuimgs/ULTIMOMENU_r1_c22.jpg" width="154" height="106" border="0" alt=""></a></td></tr><tr><td><img name="ULTIMOMENU_r2_c2" src="http://www.fontshop.se/menuimgs/ULTIMOMENU_r2_c2.jpg" width="23" height="14" border="0" alt=""></td><td><img name="ULTIMOMENU_r2_c3" src="http://www.fontshop.se/menuimgs/ULTIMOMENU_r2_c3.jpg" width="3" height="14" border="0" alt=""></td><td><a href="http://www.fontshop.se/index.htm" class="nav_usuario" target="_parent">HEM</a></td><td><img name="ULTIMOMENU_r2_c5" src="http://www.fontshop.se/menuimgs/ULTIMOMENU_r2_c5.jpg" width="3" height="14" border="0" alt=""></td><td><a href="http://www.fontshop.se/Fonts/public/index.php" class="nav_usuario1" target="_parent">TYPSNITT</a></td><td><img name="ULTIMOMENU_r2_c7" src="http://www.fontshop.se/menuimgs/ULTIMOMENU_r2_c7.jpg" width="3" height="14" border="0" alt=""></td><td><a href="http://www.fontshop.se/fontfolio.htm" class="nav_usuario7" target="_parent">TYPSNITTSSAMLINGAR</a></td><td><img name="ULTIMOMENU_r2_c9" src="http://www.fontshop.se/menuimgs/ULTIMOMENU_r2_c9.jpg" width="3" height="14" border="0" alt=""></td><td><a href="http://www.fontshop.se/typsnitt.htm" class="nav_usuario2" target="_parent">OM&nbsp;TYPSNITT</a></td><td><img name="ULTIMOMENU_r2_c11" src="http://www.fontshop.se/menuimgs/ULTIMOMENU_r2_c11.jpg" width="3" height="14" border="0" alt=""></td><td><a href="http://www.fontshop.se/bilder.html" class="nav_usuario3" target="_parent">BILDER</a></td><td><img name="ULTIMOMENU_r2_c13" src="http://www.fontshop.se/menuimgs/ULTIMOMENU_r2_c13.jpg" width="3" height="14" border="0" alt=""></td><td><a href="http://www.fontshop.se/program.htm" class="nav_usuario4" target="_parent">PROGRAM</a></td><td><img name="ULTIMOMENU_r2_c15" src="http://www.fontshop.se/menuimgs/ULTIMOMENU_r2_c15.jpg" width="3" height="14" border="0" alt=""></td><td><a href="http://www.fontshop.se/pantone.htm" class="nav_usuario5" target="_parent">PANTONE</a></td><td><img name="ULTIMOMENU_r2_c17" src="http://www.fontshop.se/menuimgs/ULTIMOMENU_r2_c17.jpg" width="3" height="14" border="0" alt=""></td><td><a href="http://www.fontshop.se/tjanster.htm" class="nav_usuario6" target="_parent">TJ&Auml;NSTER</a></td><td><img name="ULTIMOMENU_r2_c19" src="http://www.fontshop.se/menuimgs/ULTIMOMENU_r2_c19.jpg" width="3" height="14" border="0" alt=""></td><td><a href="http://www.fontshop.se/bestall.php" class="nav_usuario8" target="_parent">BEST&Auml;LL</a></td><td colspan="2"><img name="ULTIMOMENU_r2_c21" src="http://www.fontshop.se/menuimgs/ULTIMOMENU_r2_c21.jpg" width="3" height="14" border="0" alt=""></td><td><a href="http://www.fontshop.se/kontakt.htm" class="nav_usuario9" target="_parent">KONTAKT</a></td><td><img name="ULTIMOMENU_r2_c24" src="http://www.fontshop.se/menuimgs/ULTIMOMENU_r2_c24.jpg" width="3" height="14" border="0" alt=""></td><td><a href="http://www.fontshop.se/kampanj.html" class="nav_usuario10" target="_parent">KAMPANJ</a></td><td><img name="ULTIMOMENU_r2_c26" src="http://www.fontshop.se/menuimgs/ULTIMOMENU_r2_c26.jpg" width="3" height="14" border="0" alt=""></td><td><img name="ULTIMOMENU_r2_c27" src="http://www.fontshop.se/menuimgs/ULTIMOMENU_r2_c27.jpg" width="26" height="14" border="0" alt=""></td></tr><tr><td colspan="26"><img name="ULTIMOMENU_r3_c2" src="http://www.fontshop.se/menuimgs/ULTIMOMENU_r3_c2.jpg" width="824" height="16" border="0" alt=""></td><td><img src="http://www.fontshop.se/menuimgs/spacer.gif" width="1" height="16" border="0" alt=""></td></tr></table></div>' + oldHTML;
	document.getElementById('para').innerHTML = newHTML;
		return 0;
}


 function validarEmail(valor) {
  if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(valor)){
   return (true)
  } else {
   return (false);
  }
 }



function valida_envia(){
	//valido el nombre
	if (document.formulario.nombr.value.length==0){
		alert("Du har gl\xf6mt att fylla i f\xe4ltet Namn")
		document.formulario.nombr.focus()
		return 0;
	}
	if (document.formulario.apell.value.length==0){
		alert("Du har gl\xf6mt att fylla i f\xe4ltet Efternamn")
		document.formulario.apell.focus()
		return 0;
	}
		if (document.formulario.empre.value.length==0){
		alert("Du har gl\xf6mt att fylla i f\xe4ltet Företags namn")
		document.formulario.empre.focus()
		return 0;
	}
		if (document.formulario.nit.value.length==0){
		alert("Du har gl\xf6mt att fylla i f\xe4ltet Org.nr")
		document.formulario.nit.focus()
		return 0;
	}
	if (document.formulario.direc.value.length==0){
		alert("Du har gl\xf6mt att fylla i f\xe4ltet Faktura adress")
		document.formulario.direc.focus()
		return 0;
	}


	if (document.formulario.codig.value.length==0){
		alert("Du har gl\xf6mt att fylla i f\xe4ltet Postnummer")
		document.formulario.codig.focus()
		return 0;
	}
	if ((document.formulario.codig.value.length!=5)){
		alert("Postnummer ska best\xe5 av minst 5 siffror")
		document.formulario.codig.focus()
		return 0;
	}
	if (document.formulario.regio.value.length==0){
		alert("Du har gl\xf6mt att fylla i f\xe4ltet Ort")
		document.formulario.regio.focus()
		return 0;
	}

	if (document.formulario.email.value.length==0){
		alert("Du har gl\xf6mt att fylla i f\xe4ltet E-post")
		document.formulario.email.focus()
		return 0;
	}

correoa = document.formulario.email.value
bien = validarEmail(correoa)
	if (bien==false){
		alert("E-post adressen \xe4r felaktig")
		document.formulario.email.focus()
		return 0;
	}


	if (document.formulario.passw.value.length==0){
		alert("Du har gl\xf6mt att fylla i f\xe4ltet Välj ett lösenord ")
		document.formulario.passw.focus()
		return 0;
	}
















	
	//valido la edad. tiene que ser entero mayor que 18
	//edad = document.formulario.edad.value
	//edad = validarEntero(edad)
	//document.formulario.edad.value=edad
	//if (edad==""){
	//	alert("Tiene que introducir un número entero en su edad.")
	//	document.formulario.edad.focus()
	//	return 0;
	//}else{
	//	if (edad<18){
	//		alert("Debe ser mayor de 18 años.")
	//		document.formulario.edad.focus()
	//		return 0;
	//	}
	//}
	
	//valido el interés
	//if (document.formulario.interes.selectedIndex==0){
	//	alert("Debe seleccionar un motivo de su contacto.")
	//	document.formulario.interes.focus()
	//	return 0;
	//}
	
	//el formulario se envia
	document.formulario.submit();
}
function toggle(div_id) {
	var el = document.getElementById(div_id);
	if ( el.style.display == 'none' ) {	el.style.display = 'block';}
	else {el.style.display = 'none';}
}
function blanket_size(popUpDivVar) {
	if (typeof window.innerWidth != 'undefined') {
		viewportheight = window.innerHeight;
	} else {
		viewportheight = document.documentElement.clientHeight;
	}
	if ((viewportheight > document.body.parentNode.scrollHeight) && (viewportheight > document.body.parentNode.clientHeight)) {
		blanket_height = viewportheight;
	} else {
		if (document.body.parentNode.clientHeight > document.body.parentNode.scrollHeight) {
			blanket_height = document.body.parentNode.clientHeight;
		} else {
			blanket_height = document.body.parentNode.scrollHeight;
		}
	}
	var blanket = document.getElementById('blanket');
	blanket.style.height = blanket_height + 'px';
	var popUpDiv = document.getElementById(popUpDivVar);
	popUpDiv_height=blanket_height/2-150;//150 is half popups height
	popUpDiv.style.top = popUpDiv_height + 'px';
}
function window_pos(popUpDivVar) {
	if (typeof window.innerWidth != 'undefined') {
		viewportwidth = window.innerHeight;
	} else {
		viewportwidth = document.documentElement.clientHeight;
	}
	if ((viewportwidth > document.body.parentNode.scrollWidth) && (viewportwidth > document.body.parentNode.clientWidth)) {
		window_width = viewportwidth;
	} else {
		if (document.body.parentNode.clientWidth > document.body.parentNode.scrollWidth) {
			window_width = document.body.parentNode.clientWidth;
		} else {
			window_width = document.body.parentNode.scrollWidth;
		}
	}
	var popUpDiv = document.getElementById(popUpDivVar);
	window_width=window_width/2-150;//150 is half popups width
	popUpDiv.style.left = window_width + 'px';
}
function popup(windowname) {
	blanket_size(windowname);
	window_pos(windowname);
	toggle('blanket');
	toggle(windowname);		
}
