var audited ;//set this value according to default audited or unaudited
var currencyFactor  = '';
var denomFactor = 10;
var exchangerateFactor = 1;
var custid ;//set this value to the customer id
var appendtmp=1;

function showresult(p_audit,p_Curr,p_Denom,p_Exchange,p_cust,intswitch)
{
appendtmp++;
if(intswitch==1)
{
srcfile='http://www.cybersoltech.com/fire/showresults.asp?audit='+p_audit+'&cust='+p_cust+'&app='+appendtmp;
}
else
{
srcfile='http://www.cybersoltech.com/fire/showresults.asp?audit='+ p_audit +'&curr='+p_Curr + '&denom='+ p_Denom +'&exch='+p_Exchange+'&cust='+p_cust+'&app='+appendtmp;
}
escape(srcfile);
var x=document.getElementById('firescript1').getAttribute('src');
document.getElementById('firescript1').setAttribute('src',srcfile);
x=document.getElementById('firescript1').getAttribute('src');

if(p_audit==1)
alert('You Are About To View Audited Financial Results in ' + p_Curr + 's');
else
alert('You Are About To View UnAudited Financial Results ' + p_Curr + 's');
//document.body.innerHTML = '';
document.getElementById("firediv1").innerHTML='';
fillbody();
}

function show_Audit_UnAudit()
{	
	if (audited == 1)
	{
		audited = 0;
	}
	else
	{	
		if(audited==0)
		{
			audited = 1;
		}
//		else
//			alert(audited);
	}
	showresult(audited,currencyFactor,denomFactor,exchangerateFactor,custid,1);

}
function set_Denom_Currency(objfrm)
{
	currencyFactor = objfrm.m_txt_currency.value;
	denomFactor = objfrm.m_txt_denom.value;
	exchangerateFactor = objfrm.m_txt_exchangerate.value;
	showresult(audited,currencyFactor,denomFactor,exchangerateFactor,custid,0);
}
