<!--


/* 	Shane A. Devane - SFF - 26 March 2002
   	
   	shane@shanedevane.com
   	Get tech details
   	V1.0					

<script language="Javascript" src="scripts/js/tech_details.js"></script>

//call function within form tags

<script language="javascript">
<!--
write_out_fields();
//-->
</script>


						*/




//Change Variables
var debug = "no";
var td_form_name = new String(td_form_name);

//default
if (td_form_name == "undefined") {
td_form_name = "askaquestion";
}


//no need to change below
var info = new Array();


//must be in this order
info[0] = "cpu"
info[1] = "system_language"
info[2] = "user_agent"
info[3] = "java_enabled"
info[4] = "screen_height"
info[5] = "screen_width"
info[6] = "browser_height"
info[7] = "browser_width"
info[8] = "cookies_enabled"

info[9] = "screen_bufferdepth"
info[10] = "screen_colordepth"
info[11] = "screen_updateinterval"

info[12] = "inner_width"
info[13] = "inner_height"

info[14] = "referrer"





function write_out_fields () {
	for (x = 0; x < info.length; x++) {

		if (debug == "yes") {
		document.write(info[x]+" <input type=text name='"+info[x]+"'><Br>");
		
		} else {
		document.write("<input type=hidden name='"+info[x]+"'>");
		
		}

	}

get_tech_info();
}


function get_tech_info() {

eval("document."+td_form_name+"."+info[0]+".value = navigator.cpuClass;");
eval("document."+td_form_name+"."+info[1]+".value = navigator.systemLanguage;");
eval("document."+td_form_name+"."+info[2]+".value = navigator.userAgent;");
eval("document."+td_form_name+"."+info[3]+".value = navigator.javaEnabled();");
eval("document."+td_form_name+"."+info[8]+".value = navigator.cookieEnabled;");



	//Internet Explorer
	if (document.all) {

	eval("document."+td_form_name+"."+info[4]+".value = screen.height;");
	eval("document."+td_form_name+"."+info[5]+".value =  screen.width;");
	eval("document."+td_form_name+"."+info[6]+".value = document.body.clientHeight;");
	eval("document."+td_form_name+"."+info[7]+".value = document.body.clientWidth;");


	eval("document."+td_form_name+"."+info[9]+".value = screen.bufferDepth;");
	eval("document."+td_form_name+"."+info[10]+".value = screen.colorDepth;");
	eval("document."+td_form_name+"."+info[11]+".value = screen.updateInterval;");

	eval("document."+td_form_name+"."+info[12]+".value = document.body.offsetHeight;");
	eval("document."+td_form_name+"."+info[13]+".value = document.body.offsetWidth;");

	eval("document."+td_form_name+"."+info[14]+".value = document.referrer;");



	//Netscape Navigator
	} else if (document.layers) {


	eval("document."+td_form_name+"."+info[4]+".value = window.pageYOffset;");
	eval("document."+td_form_name+"."+info[5]+".value = window.pageXOffset;");
	eval("document."+td_form_name+"."+info[6]+".value = window.innerHeight;");
	eval("document."+td_form_name+"."+info[7]+".value = window.innerWidth;");


	eval("document."+td_form_name+"."+info[12]+".value = window.innerHeight;");
	eval("document."+td_form_name+"."+info[13]+".value = window.innerWidth;");

	}

}



