

// Denna funktionen användas när besökaren klickat på ett formulär-objekt, 
// lägger en liten ram runt objektet för att förtydliga att det är markerat
// och klart för inmatning av text
function onFocus(dumt){
	if (document.all){
		dumt.className  = "inputformfocus";
	}
}

// Denna funktionen användas för att återställa ett formulär-objekt som tidigare
// varit aktiverat
function onBlur(dumt){
	if (document.all){
		dumt.className = "inputform";
	}
}

// Denna funktionen användas när besökaren klickat på ett formulär-objekt, 
// lägger en liten ram runt objektet för att förtydliga att det är markerat
// och klart för inmatning av text
function regformOnFocus(dumt){
	if (document.all){
		dumt.className  = "regformFieldFocus";
	}
}

// Denna funktionen användas för att återställa ett formulär-objekt som tidigare
// varit aktiverat
function regformOnBlur(dumt){
	if (document.all){
		dumt.className = "regformField";
	}
}

// Denna funktionen användas för att visa ett pop-up fönster 
// Används just nu i checkout.php, change_shopcase.php
function na_open_window(name, url, left, top, width, height, toolbar, menubar, statusbar, scrollbar, resizable)
{
  toolbar_str = toolbar ? 'yes' : 'no';
  menubar_str = menubar ? 'yes' : 'no';
  statusbar_str = statusbar ? 'yes' : 'no';
  scrollbar_str = scrollbar ? 'yes' : 'no';
  resizable_str = resizable ? 'yes' : 'no';

  cookie_str = document.cookie;
  cookie_str.toString();

  pos_start  = cookie_str.indexOf(name);
  pos_end    = cookie_str.indexOf('=', pos_start);

  cookie_name = cookie_str.substring(pos_start, pos_end);

  pos_start  = cookie_str.indexOf(name);
  pos_start  = cookie_str.indexOf('=', pos_start);
  pos_end    = cookie_str.indexOf(';', pos_start);
  
  if (pos_end <= 0) pos_end = cookie_str.length;
  cookie_val = cookie_str.substring(pos_start + 1, pos_end);
  if (cookie_name == name && cookie_val  == "done")
    return;

  window.open(url, name, 'left='+left+',top='+top+',width='+width+',height='+height+',toolbar='+toolbar_str+',menubar='+menubar_str+',status='+statusbar_str+',scrollbars='+scrollbar_str+',resizable='+resizable_str);
}



// Följande funktioner används för att visa menyn i shopen
// 
		
		function showInputBox_MonstradePapper()
		{
			if( document.getElementById( 'emailinputbox_MonstradePapper' ) )
				if( document.getElementById( 'emailinputbox_MonstradePapper' ).style.display =='none')
					document.getElementById( 'emailinputbox_MonstradePapper' ).style.display = 'block';
				else
					document.getElementById( 'emailinputbox_MonstradePapper' ).style.display = 'none';
		}
		
		
		function showInputBox_EnfargadePapper()
		{
			if( document.getElementById( 'emailinputbox_EnfargadePapper' ) )
				if( document.getElementById( 'emailinputbox_EnfargadePapper' ).style.display =='none')
					document.getElementById( 'emailinputbox_EnfargadePapper' ).style.display = 'block';
				else
					document.getElementById( 'emailinputbox_EnfargadePapper' ).style.display = 'none';
		}
		
		
		function showInputBox_Kort_och_kuvert()
		{
			if( document.getElementById( 'emailinputbox_Kort_och_kuvert' ) )
				if( document.getElementById( 'emailinputbox_Kort_och_kuvert' ).style.display =='none')
					document.getElementById( 'emailinputbox_Kort_och_kuvert' ).style.display = 'block';
				else
					document.getElementById( 'emailinputbox_Kort_och_kuvert' ).style.display = 'none';
		}
		
				
			function showInputBox_Band()
		{
			if( document.getElementById( 'emailinputbox_Band' ) )
				if( document.getElementById( 'emailinputbox_Band' ).style.display =='none')
					document.getElementById( 'emailinputbox_Band' ).style.display = 'block';
				else
					document.getElementById( 'emailinputbox_Band' ).style.display = 'none';
		}	
			
			
			function showInputBox_Stämpeldynor()
		{
			if( document.getElementById( 'emailinputbox_Stämpeldynor' ) )
				if( document.getElementById( 'emailinputbox_Stämpeldynor' ).style.display =='none')
					document.getElementById( 'emailinputbox_Stämpeldynor' ).style.display = 'block';
				else
					document.getElementById( 'emailinputbox_Stämpeldynor' ).style.display = 'none';
		}
		
					
			function showInputBox_Dekorationer()
		{
			if( document.getElementById( 'emailinputbox_Dekorationer' ) )
				if( document.getElementById( 'emailinputbox_Dekorationer' ).style.display =='none')
					document.getElementById( 'emailinputbox_Dekorationer' ).style.display = 'block';
				else
					document.getElementById( 'emailinputbox_Dekorationer' ).style.display = 'none';
		}
	
	
	function showInputBox_Pennor()
		{
			if( document.getElementById( 'emailinputbox_Pennor' ) )
				if( document.getElementById( 'emailinputbox_Pennor' ).style.display =='none')
					document.getElementById( 'emailinputbox_Pennor' ).style.display = 'block';
				else
					document.getElementById( 'emailinputbox_Pennor' ).style.display = 'none';
		}
			
			
			function showInputBox_Övrigt()
		{
			if( document.getElementById( 'emailinputbox_Övrigt' ) )
				if( document.getElementById( 'emailinputbox_Övrigt' ).style.display =='none')
					document.getElementById( 'emailinputbox_Övrigt' ).style.display = 'block';
				else
					document.getElementById( 'emailinputbox_Övrigt' ).style.display = 'none';
		}
   

