function windowPop(page,pagew,pageh,features)
{
	features = ',' + features
	//features = ',resizable,scrollbars'
	agent = navigator.userAgent.toLowerCase();
	isMacIE = (agent.indexOf('msie') != -1) && (agent.indexOf('mac') != -1)
	if (isMacIE)
	{
		pagew -= 16
		pageh -= 16
	}

	window.open(page,'windowPop','width=' + pagew + ',height=' + pageh + features).focus()
}

function changeBG(objectID,newClass)
{
	document.getElementById(objectID).className=newClass;
}

function ImageChange(ImageID,ImagePath)
{
	document.images[ImageID].src='/images/'+ImagePath;
}

function JumpTo(SelectObject)
{
	location.href=SelectObject.options[SelectObject.selectedIndex].value;
}

var comboArray = new Array("_industry", "_service", "_region");
function ImageComboChange(oDropdown){
	//alert(oDropdown.value);
	if (oDropdown.value!=""){
		for(i=0;i<comboArray.length;i++){
			if (document.getElementById(comboArray[i]) && comboArray[i]!=oDropdown.id) {
				document.getElementById(comboArray[i]).style.backgroundColor = "#E5E5E5";
				document.getElementById(comboArray[i]).value = "0";
			} else if (document.getElementById(comboArray[i]) && comboArray[i]==oDropdown.id) {
				document.getElementById(comboArray[i]).style.backgroundColor = "#FFFFFF";
			}
		}
	} else if (oDropdown.value==""){
		for(i=0;i<comboArray.length;i++){
			if (document.getElementById(comboArray[i])) {
				document.getElementById(comboArray[i]).style.backgroundColor = "#FFFFFF";
			}
		}
	}
}

function ViewImage(imageGUID){
	my_width = 750;
	my_height = 550;
	var _width = 0;
	var _height = 0;
	var centered_width = 0;
	var centered_height = 0;
	_width = screen.availWidth;
	_height = screen.availHeight;
	if (_width>my_width) centered_width = (_width-my_width)/2;
	if (_height>my_height) centered_height = (_height-my_height)/2;
	newwin = window.open("/exel/exel.site/controls/media/imagepopup.aspx?guid="+imageGUID,"wokno"+parseInt(Math.random(3)*1000),"top="+centered_height+",left="+centered_width+",status=no,scrollbars=yes,menubar=no,resizable=yes,width="+my_width+",height="+my_height);
	newwin.focus();
}