function calcCurr(){
         {document.formDetail.ValueCalc.value = (+document.formDetail.SelectCountry.value * +document.formDetail.cntTot.value)
		 document.formDetail.cTotal.value = formatCurrency(+document.formDetail.SelectCountry.value * +document.formDetail.cntTot.value)
		 
		 }
}
function fl(){
		document.formDetail.pTotal.disabled = true
		//document.forms[ID].EventDate.disabled = true
		document.formDetail.cTotal.disabled = true
		}
//Define function to format a value as currency:
function formatCurrency(num)
	{
	   // Courtesy of http://www7.brinkster.com/cyanide7/
		num = num.toString().replace(/\$|\,/g,'');
		if(isNaN(num))
		   num = "0";
		sign = (num == (num = Math.abs(num)));
		num = Math.floor(num*100+0.50000000001);
		cents = num%100;
		num = Math.floor(num/100).toString();
		if(cents<10)
		    cents = "0" + cents;
		for (var i = 0; i < Math.floor((num.length-(1+i))/3); i++)
		    num = num.substring(0,num.length-(4*i+3))+','+
		          num.substring(num.length-(4*i+3));
  	    return (((sign)?'':'-') + '' + num + '.' + cents);
	}

function submit_form(){
if (document.formDetail.cntTot.value < 1 ){
	alert ("You have not made a proper selection to add this to your itinerary!")
	return false ;}
else if (isNaN (document.formDetail.cntTot.value )){
	alert ("You have not made a proper selection to add this to your itinerary!")
	return false ;}
else{
//alert ("saving")
return true;
document.formDetail.submit();
}
}
