function changeProjectImage(catId, light_id, defaultImage)

{
	

var xmlhttp;


//Check if we are using IE.
try {
//If the Javascript version is greater than 5.
xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
} catch (e) {
//If not, then use the older active x object.
try {
//If we are using Internet Explorer.
xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
} catch (E) {
//Else we must be using a non-IE browser.
xmlhttp = false;
}
}
//If we are using a non-IE browser, create a javascript instance of the object.
if (!xmlhttp && typeof XMLHttpRequest != 'undefined') {
xmlhttp = new XMLHttpRequest();
}



//var divObj = document.getElementById("image");

var serverPage = "../common/getProjectProfile.php?light_id="+light_id+"&catId="+catId;

xmlhttp.open("POST", serverPage);

xmlhttp.onreadystatechange = function ()
{
if (xmlhttp.readyState == 4 && xmlhttp.status == 200)
{

	



	
//var obj2 = document.getElementById("bigImage");

//obj2.innerHTML = '<img src="../thumbnails/'+defaultImage+'" />';



//var productName = document.getElementById("productName");
//productName.innerHTML = xmlhttp.responseText;


var productName = document.getElementById("profileContent");
productName.innerHTML = xmlhttp.responseText;
}


}



xmlhttp.send(null);


}








//TO CHANGE IMAGE ON CLICK
function changeProjectImageOnClick(catId, light_id, imageRef)

{


var xmlhttp;


//Check if we are using IE.
try {
//If the Javascript version is greater than 5.
xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
} catch (e) {
//If not, then use the older active x object.
try {
//If we are using Internet Explorer.
xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
} catch (E) {
//Else we must be using a non-IE browser.
xmlhttp = false;
}
}
//If we are using a non-IE browser, create a javascript instance of the object.
if (!xmlhttp && typeof XMLHttpRequest != 'undefined') {
xmlhttp = new XMLHttpRequest();
}



//var divObj = document.getElementById("image");

var serverPage = "../common/getProjectProfile.php?light_id="+light_id+"&catId="+catId;

xmlhttp.open("POST", serverPage);

xmlhttp.onreadystatechange = function ()
{
if (xmlhttp.readyState == 4 && xmlhttp.status == 200)
{

	

//var obj3 = document.getElementById("bigImage");

//obj3.innerHTML = '<img src="../thumbnails/'+imageRef+'" />';




var productName = document.getElementById("profileContent");
productName.innerHTML = xmlhttp.responseText;

}


}




xmlhttp.send(null);


}

