var InternetExplorer = navigator.appName.indexOf("Microsoft") != -1;
var client_browse = "";
if(document.getElementById)
{client_browse="ie5";}	// IE5+,NN6+	document.getElementById("id")
else if(document.all)
{client_browse="ie4";}	// IE4	document.all("id");
else if(document.layers)
{client_browse="ns4";}	// NN4	document.layers["id"];
function get(strname)
{
	switch(client_browse){
		case "ie5":
			return document.getElementById(strname);
			break;
		case "ns4":
			return document.layers[strname];
			break;
		default:	//"ie4"
			return document.all(strname);
			break;
	}
}

function flash(name, height, width){
	var str = "<object type=\"application/x-shockwave-flash\" data=\"" + name + "\" height=\"" + height + "\" width=\"" + width + "\">"
	str += "<param name=\"movie\" value=\"" + name + "\" />"
	str += "<param name=\"menu\" value=\"false\" />"
	str += "<param name=\"quality\" value=\"high\" />"
	str += "<param name=\"wmode\" value=\"transparent\" />"
	str += "</object>"
	document.write(str);
}

function refresh(){get("code_img").src = '/Portal/Dealers/inc/getcode.asp?' + Math.random();}