/**
  * ### MICARDIS GLOBAL JAVASCRIPT
  *
  * AUTHOR : Craig McNicholas
  * DATE   : 08/01/2008
  *
  **/

/* ### FUNCTION TO CLEAR SEARCH FIELD ONCLICK */
function searchcheck(me) {
	try {
		if(me.value == "SEARCH") {
			me.value = "";
		}
	} catch(err) {
	}
}

/* add-on for opening popup [IT] */
var remote = null;
function disclaimer_global(Location,Disclaimer) {
  remote = window.open('', 'Zoom', 'toolbar=no,location=no,directories=no,status=no,menubar=no,width=500,height=450,resizable=no,scrollbars=no');
  if (remote != null)
  {  if (remote.opener == null) {remote.opener = self;}
     remote.document.location.href = Disclaimer+"?Location="+Location;    
  }
  remote.opener.name = "opener";
}

/* addon for opening images [IT] */
function openImage(sUrl, width, height)
{
  var para;

  para = "dependent=yes, resizable=yes, scrollbars=yes";
  para = para + ", height=" + height;
  para = para + ", width=" + width;

	window.open(sUrl, "Image", para);
}

function openPopupScroll(url, setWidth, setHeight) {

	bi_popup_scroll = window.open(url, "bi_popup_scroll","width="+setWidth+",height="+setHeight+",menubar=no,toolbar=no,resizable=yes,scrollbars=yes");

	bi_popup_scroll.focus();

}
