function paket(val){
content_2col_right.innerHTML = val.innerHTML; 
}

function paketDj(val,dest){
	dj.innerHTML = val.innerHTML;
	if(dest == "dj")
		img_inst_dj.src = "css/img/djs.gif";
	else
		img_inst_dj.src = "css/img/artisterinstruktorer.gif";
}
//English
function paketDj_en(val,dest){
	dj.innerHTML = val.innerHTML;
	if(dest == "dj")
		img_inst_dj.src = "css/img/djs.gif";
	else
		img_inst_dj.src = "css/img/performers.gif";
}

var InternetExplorer = navigator.appName.indexOf("Microsoft") != -1;

function myFlash_DoFSCommand(command, args){
  var myFlashObj = InternetExplorer ? myFlash : document.myFlash;
  //alert (args);
  var x = document.getElementById(args)
  paket(x);
}
if (navigator.appName && navigator.appName.indexOf("Microsoft") != -1 &&
  navigator.userAgent.indexOf("Windows") 
!= -1 && navigator.userAgent.indexOf("Windows 3.1") == -1) {
  document.write('<SCRIPT LANGUAGE=VBScript\> \n');
  document.write('on error resume next \n');
  document.write('Sub myFlash_FSCommand(ByVal command, ByVal args)\n');
  document.write(' call myFlash_DoFSCommand(command, args)\n');
  document.write('end sub\n');
  document.write('</SCRIPT\> \n');
} 


function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=320,height=340');");
}


function openDjWindow(imageType,imageName,imageWidth,imageHeight,alt,posLeft,posTop) {  // v4.01
	newWindow = window.open("","newWindow","width="+imageWidth+",height="+imageHeight+",scrollbars=no,left="+posLeft+",top="+posTop);
	newWindow.document.open();
	newWindow.document.write('<html><title>'+alt+'</title><body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginheight="0" marginwidth="0" onBlur="self.close()">'); 
	
	if (imageType == "swf"){
	newWindow.document.write('<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0\" width=\"'+imageWidth+'\" height=\"'+imageHeight+'\">');
	newWindow.document.write('<param name=movie value=\"'+imageName+'\"><param name=quality value=high>');
	newWindow.document.write('<embed src=\"'+imageName+'\" quality=high pluginspage=\"http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash\" type=\"application/x-shockwave-flash\" width=\"'+imageWidth+'\" height=\"'+imageHeight+'\">');
	newWindow.document.write('</embed></object>');	}
	
	else{
	newWindow.document.write('<img src=\"images/'+imageName+'\" width='+imageWidth+' height='+imageHeight+' alt=\"'+alt+'\">'); 	}
	newWindow.document.write('</body></html>');
	newWindow.document.close();
	newWindow.focus();
}


function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}




function checkRegister( form ) {

  if (form.name.value == "") //
	{ 
		alert ("Fyll i ditt namn.");
		return false;
	}
	else if (form.email.value == "" || form.email.value.length <= 7 ) //
	{ 
		alert ("Fyll i din e-post.");
		return false;
	}
	else if (form.adress.value == "") //
	{ 
		alert ("Fyll i din adress.");
		return false;
	}
	else if (form.postal_code.value == "") //
	{ 
		alert ("Fyll i ditt postnummer.");
		return false;
	}
	else if (form.city.value == "") //
	{ 
		alert ("Fyll i din postadress.");
		return false;
	}
	else if (form.country.value == "") //
	{ 
		alert ("Fyll i ditt land.");
		return false;
	}
	else if (form.phone.value == "") //
	{ 
		alert ("Fyll i ditt telefonnummer.");
		return false;
	}
	else{
		alert("Eso es todo amigos!!");
		form.action="http://www.hotsalsaweekend.com/cgi-bin/FormMail.pl";
		form.recipient = "harvey@hotsalsaweekend.com";
		form.subject = "HOT SALSA WEEKEND, ny registrering";
		form.redirect = "http://www.hotsalsaweekend.com/tack_reg.html";
					
		form.submit();
	}
	
	return true;
	//----------
	
}