function ipopUp(file,name,width,height) {
	
	height = parseInt(height);
	width = parseInt(width);
	popup = window.open('/izoom.php?file='+file+'&name='+name,'popup','width='+width+',height='+height);
	popup.focus();
}


function popUp(file,width,height) {
	
	height = parseInt(height);
	width = parseInt(width);
	popup = window.open('/rtc-popUp/'+file,'popup','width='+width+',height='+height);
}

function setStatus(str) {
	window.status = str;
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}


var DHTML = (document.getElementById || document.all || document.layers);

function getObj(name)
{
  if (document.getElementById)
  {
  	this.obj = document.getElementById(name);
	this.style = document.getElementById(name).style;
  }
  else if (document.all)
  {
	this.obj = document.all[name];
	this.style = document.all[name].style;
  }
  else if (document.layers)
  {
   	this.obj = document.layers[name];
   	this.style = document.layers[name];
  }
}

function toggleVis(elm,flag)
{

	if (!DHTML) return;
	var x = new getObj(elm);
	x.style.visibility = (flag) ? 'visible' : 'hidden';
}


function toggleInputColor(objElement)
{
  if (objElement.className=='stdinput')
    objElement.className='stdinputfocus';
  else
    objElement.className='stdinput';
}

function setfieldvalue(elm, value) {
	elm.value = value;
}
