// JavaScript Document
//alert('run script');

function setfocusMaster(a_field_id) {
	//var sField=a_field_id.value;
	alert(a_field_id);
    a_field_id.focus();
	alert(sField);
    }

function setfocusActivate(){
    //Salert('1');
	document.forms[1].input_activate.focus();
	//alert('ändra stil');
	document.forms[1].input_activate.setAttribute("class", "formInputFokus");
	//alert('klar');
}
function setfocusActivate2(){
   //alert('1');
	document.forms[0].input_activate.focus();
	//alert('ändra stil');
	
	//alert('klar');
}

function setfocusOnload(){
	//alert('asdf');
	document.forms[1].input_activate.focus();
}
function setfocusOnActivate(){
	//alert('asdf');
	document.forms[0].email1.focus();
}

function ddd(){
	
	alert('dddd')
	}

function setfocusOnsCode(){
	//alert('asdf');
	document.form1.sCode.focus();
}
function setfocusWhat(){
	//alert('asdf');
	document.form1.inpWhat.focus();
}
function showHideDiv(theID){
	//alert(theID)
	var divWithId = document.getElementById(theID);
	
	if (divWithId.className == 'divHide'){
		divWithId.setAttribute("class", "divHideShow");
	}
	else {
		divWithId.setAttribute("class", "divHide");	
		}
	
}


var state = 'hidden';

function showhide(layer_ref) {


if (state == 'visible') {
state = 'hidden';
}
else {
state = 'visible';
}
if (document.all) { //IS IE 4 or 5 (or 6 beta)
eval( "document.all." + layer_ref + ".style.visibility = state");
}
if (document.layers) { //IS NETSCAPE 4 or below
document.layers[layer_ref].visibility = state;
}
if (document.getElementById && !document.all) {
maxwell_smart = document.getElementById(layer_ref);
maxwell_smart.style.visibility = state;
}
}

var state = 'none';

function showhide2(layer_ref) {

if (state == 'inline') {
state = 'none';
}
else {
state = 'inline';
}
if (document.all) { //IS IE 4 or 5 (or 6 beta)
eval( "document.all." + layer_ref + ".style.display = state");
}
if (document.layers) { //IS NETSCAPE 4 or below
document.layers[layer_ref].visibility = state;
}
if (document.getElementById && !document.all) {
maxwell_smart = document.getElementById(layer_ref);
maxwell_smart.style.display = state;
}
}











