ng5 = (document.getElementById) ? true:false
ns4 = (document.layers) ? true:false
ie4 = (document.all) ? true:false 

function yesshow(divID){
if (ng5) {
	var lyr = document.getElementById(divID);			
	if (lyr.style.display == "none") {
	lyr.style.display = "block";
	} else {
	lyr.style.display = "block";
	}	
}
else if (ns4) {
	var lyr = document.layers[divID];
	if (lyr.visibility == "hidden") {
	lyr.visibility = "show";
	} else {
	lyr.visibility = "show";
	}	
}
else if (ie4){
	var lyr = document.all[divID];
	if (lyr.style.display == "none") {
	lyr.style.display = "block";
	} else {
	lyr.style.display = "block";
	}	
}	
}
function noshow(divID){
if (ng5) {
	var lyr = document.getElementById(divID);			
	if (lyr.style.display == "none") {
	lyr.style.display = "none";
	} else {
	lyr.style.display = "none";
	}	
}
else if (ns4) {
	var lyr = document.layers[divID];
	if (lyr.visibility == "hidden") {
	lyr.visibility = "hidden";
	} else {
	lyr.visibility = "hidden";
	}	
}
else if (ie4){
	var lyr = document.all[divID];
	if (lyr.style.display == "none") {
	lyr.style.display = "none";
	} else {
	lyr.style.display = "none";
	}	
}	
}

function changeto() {
if (document.contact_decide.Department.value == "Customer Service")	{ yesshow('contact_customer'); noshow('contact_sales'); noshow('contact_technical'); noshow('contact_analyst'); }
else if (document.contact_decide.Department.value == "Sales") { noshow('contact_customer'); yesshow('contact_sales'); noshow('contact_technical'); noshow('contact_analyst'); }
else if (document.contact_decide.Department.value == "Technical Support") { noshow('contact_customer'); noshow('contact_sales'); yesshow('contact_technical'); noshow('contact_analyst'); }
else if (document.contact_decide.Department.value == "Analyst") { noshow('contact_customer'); noshow('contact_sales'); noshow('contact_technical'); yesshow('contact_analyst'); }
else { yesshow('contact_customer'); noshow('contact_sales'); noshow('contact_technical'); noshow('contact_analyst'); }
}

