function openWin(page,name,width,height,scroll,resize){
	window.open(page,name,"toolbar=0,location=0,status=0,menubar=0,scrollbars=" + scroll + ",resizable=" + resize + ",top=0,left=0,width=" + width + ",height=" + height)
}


/*function show_key ( the_key )
{
    if ( ! the_key )
    {
		the_key = event.keyCode;
    }

	if(the_key == 13){ //if generated character code is equal to ascii 13 (if enter key)
		document.forms[0].submit() //submit the form
		return false;
	}
	else{
		return true; 
	}
}*/
function CurrencyFormatted(amount)
{
	var i = parseFloat(amount);
	if(isNaN(i)) { i = 0.00; }
	var minus = '';
	if(i < 0) { minus = '-'; }
	i = Math.abs(i);
	i = parseInt((i + .005) * 100);
	i = i / 100;
	s = new String(i);
	if(s.indexOf('.') < 0) { s += '.00'; }
	if(s.indexOf('.') == (s.length - 2)) { s += '0'; }
	s = minus + s;
	return s;
}

var boolDescription = false;

function hitme(result){
	boolDescription = result;
}

function show_key ( the_key )
{
    if ( ! the_key )
    {		
        the_key = event.keyCode;
    }

	if(the_key == 13){ //if generated character code is equal to ascii 13 (if enter key)
		if(boolDescription)
		{
			return true;
		}
		try{
			var appForm = document.Form1;
			if(appForm!=null){
				for(i = 0;i<appForm.elements.length;i++)
				{
					if(appForm[i].type=="submit" && appForm[i].id){
						appForm[i].focus();
						return;
					}
				}
			}

			document.forms[0].submit() //submit the form
		}
		catch(e){
			//alert(e.message);
		}
	}
	else{
		return true; 
	}
}
