
// Function to Use Ajax.
function trim(s) {
   var temp = s;
   return temp.replace(/^\s+/,'').replace(/\s+$/,'');
}
	
	
function showDiv(divId){
var divObj  = document.getElementById(divId);
  if (divObj)
  {
  		//alert('showDiv');
  		divObj.style.visibility = "visible";
		divObj.style.display = "block";
  }

}
function hideDiv(divId){
var divObj  = document.getElementById(divId);
  if (divObj)
  {
  		//alert('hidediv');
  		divObj.style.visibility = "hidden";
		divObj.style.display = "none";
  }
}

function good(){
alert('good');
}

function bad(){
alert('bad');
}
function imageTester(imagepath)
{
var tester=new Image(); // public variable
tester.onload=good;
tester.onerror=bad;
tester.src=imagepath;
}



