function trim(stringToTrim) {

return stringToTrim.replace(/^\s+|\s+$/g,"");

}

function ltrim(stringToTrim) {

return stringToTrim.replace(/^\s+/,"");

}

function rtrim(stringToTrim) {

return stringToTrim.replace(/\s+$/,"");

}
function mailFranking()
{
	//return hs.close('highslide-html2');

var val="maildetail";
	//alert(val);
//return 
hs.htmlExpand(document.getElementById(val), { contentId: 'highslide-html1' } );
//document.getElementById('contactname').focus();
}
function mailFranking_other()
{
	///return hs.close('highslide-html1');

var val="maildetail_other";
	//alert(val);
//return 
hs.htmlExpand(document.getElementById(val), { contentId: 'highslide-html2' } );
//document.getElementById('contactname').focus();
}

function GetKey(e) {
  var code;
  if (!e) var e = window.event;
  if (e.keyCode) code = e.keyCode;
  else if (e.which) code = e.which;
  if(String.fromCharCode(code)>=0 && String.fromCharCode(code)<=9 || code==8){
   return true;
  /*}else if( code>=38 && code<=40){
 
   return true;*/
  }else
   return false;
 }
