// new prototype defintion
document.include = function (url) {
 if ('undefined' == typeof(url)) return false;
 var p,rnd;
 if (document.all){
   // For IE, create an ActiveX Object instance 
   p = new ActiveXObject("Microsoft.XMLHTTP");
 } 
 else {
   // For mozilla, create an instance of XMLHttpRequest.
   p = new XMLHttpRequest();
 }
 // Prevent browsers from caching the included page
 // by appending a random  number
 rnd = Math.random().toString().substring(2);
 url = url.indexOf('?')>-1 ? url+'&rnd='+rnd : url+'?rnd='+rnd;
 // Open the url and write out the response
 p.open("GET",url,false);
 p.send(null);
 document.write( p.responseText );
}



function changeFeature(featureNum)
{
		//hide all product boxes
for (a=0; document.getElementById('f' + a); a++) {

			menu1 = document.getElementById('f' + a);
			menu1.style.display = 'none';
}
	tester = document.getElementById('f' + featureNum);
	tester.style.display = 'block';
}


function changesubFeature(featureNum)
{
		//hide all product boxes
for (a=0; document.getElementById('f' + a); a++) {

			menu1 = document.getElementById('f' + a);
			menu1.style.display = 'none';
}
	tester = document.getElementById('f' + featureNum);
	tester.style.display = 'block';
}




function change_image(obj_id,img)
{
  	get_object(obj_id).src = img;
}
function changeColor(obj_id,req_color)
{
	get_object(obj_id).style.color=req_color;
}
function changeClass(obj_id,class_name)
{
	get_object(obj_id).className=class_name;
}
function get_object(obj_id)
{
	if(document.getElementById(obj_id))
	{
		return document.getElementById(obj_id);
	}
	else
	{
		alert("Object not exists with id: ".obj_id);
		return false;
	}
}
function get_objectvalue(obj_id)
{
	return get_object(obj_id).value;
}


