//  String of the form Object parameter for url
	function getParm(objFrm)
	{
		var inputs = objFrm.getElementsByTagName("input");
		var selects = objFrm.getElementsByTagName("select");
		var textareas = objFrm.getElementsByTagName("textarea");
		var inputLen = inputs.length;
		var selectLen = selects.length;
		var textareaLen = textareas.length;
		var parm = "?";
		
		for( var i = 0; i < inputLen; i++ )
		{
			if ( inputs[i].type!="button" && inputs[i].type!="submit" && inputs[i].type!="reset" && inputs[i].type!="file" && inputs[i].type!="image" )
			{
				if ( inputs[i].type == "radio" || inputs[i].type == "checkbox" )
				{
					if ( inputs[i].checked )
						parm += inputs[i].name + "=" + escape(inputs[i].value) + "&";
				}
				else
				{
					parm += inputs[i].name + "=" + escape(inputs[i].value) + "&";
				}
			}
		}
		
		for( var i = 0; i < selectLen; i++ )
		{
			if ( selects[i].multiple )
			{
				for( var j = 0; j < selects[i].length; j++ )
				{
					if ( selects[i].options[j].selected )
						parm += selects[i].name + "=" + escape(selects[i].options[j].value) + "&";
				}
			}
			else
			{
				parm += selects[i].name + "=" + escape(selects[i].value) + "&";
			}
		}
		
		for( var i = 0; i < textareaLen; i++ )
		{
			parm += textareas[i].name + "=" + escape(textareas[i].value) + "&";
		}
		return parm;
	}
	
	function chkBlank(obj)
	{
    	if(trim(obj.value) == ""){
        	obj.value = "";
        	//obj.focus();
        	return true;
    	}else
		{
			obj.value = trim(obj.value);
			return false;
		}
	}
	
	// remove the word space
	function trim(strText)
	{
		while (strText.substring(0,1) == ' ')
			strText = strText.substring(1, strText.length);
		while (strText.substring(strText.length-1,strText.length) == ' ')
		    strText = strText.substring(0, strText.length-1);
		return strText;
	}
	
	// check 0~9 , A~Z , a~z , - , . , ' , @
	function IsCharacter(v)
	{
  		if((v>=48 && v<=57) || (v>=65 && v<=90) || (v>=97 && v<=122) || (v == 45 || v == 46 || v == 64 || v == 39))
		{} 
		else{window.event.returnValue=false;}
	}
	
	// check English word & number
	function IsEngorInt(v)
	{
  		if((v>=48 && v<=57) || (v>=65 && v<=90) || (v>=97 && v<=122)){} else{window.event.returnValue=false;}
	}
	
	function setTdOnMouseOver(obj)
	{	// obj is table's tr
		var tdObj = obj.cells;
		if ( tdObj.length )
		{
			for( var i = 0; i < tdObj.length; i++ )
			{
				tdObj[i].style.backgroundColor = '#FCD794';
			}
		}
		else
		{
			tdObj.style.backgroundColor = '#FCD794';
		}
    }
	
	function setTdOnMouseOut(obj)
	{	// obj is table's tr
		var tdObj = obj.cells;
		if ( tdObj.length )
		{
			for( var i = 0; i < tdObj.length; i++ )
			{
				tdObj[i].style.backgroundColor = '';
			}
		}
		else
		{
			tdObj.style.backgroundColor = '';
		}
    }
	
	function onOverNoStatus(id)
	{
		var profile = document.all(id);
		for ( var i = 0; i < profile.length; i++ )
		{
			profile[i].onmouseover = function(){
								      				window.status = "";
									  				return true;	
								  				}
		}
		
	}