
function switchPics(obj)
{
  if (obj.id!="selected") //if it isn't an active pic
  {
    obj.style.cursor = 'pointer';
    if(obj.src.indexOf('_l')>-1)
      obj.src=obj.src.substring(0, obj.src.indexOf('_l')-1)+'2.gif'; //e.g. "avstralia1.gif" - big picture
    else
      obj.src=obj.src.substring(0, obj.src.indexOf('.gif')-1)+'2_l.gif'; // e.g. "avstralia2_l.gif" - small mouare picture
  }
  return 0;
}

function MM_preloadImages() { //v3.0

 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();

   var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)

   if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}

}

function deleteMessage(id){
	if (confirm('Do you want to delete this message ?')){
			window.location.href="index.php?do=home.deleteMessage&messageid=" + id.toString();
	}
}

function openPopup(url)
{
	objWindow = window.open(url, 'popupWin', 'height=600,width=500,location=no,menubar=no,personalbar=no,toolbar=no,resizable=yes');
	objWindow.moveBy(200, 150);
}
