function ask_check(question){
if(confirm(question)){
   return true;
  }
return false;
}


function trim(strMessage)
{
	var strResult;
	var charTemp;
	var i;

	strResult = "";

	//remove the left space
	for ( i = 0; i < strMessage.length; i++ )
	{
		charTemp = strMessage.charAt(i);
		if ( charTemp != " " )
		{
			strResult = strMessage.substring(i);
			break;
		}
	}

	//remove the right space
	for ( i = strResult.length-1; i >= 0; i-- )
	{
		charTemp = strResult.charAt(i);
		if ( charTemp != " " )
		{
			strResult = strResult.substring(0,i+1);
			break;
		}
	}
	return (strResult);
}