function main_ConfirmLink(theLink,theQuery)
{
 var is_confirmed=confirm(theQuery);
 if(is_confirmed) theLink.href += '&is_js_confirmed=1'; 
 return is_confirmed;
}

function main_ChgBkColor(o,c)
{
 o.style.backgroundColor=c;
}

function main_Window(what,desc,x,y)
{
 window.open(what,desc,'width='+x+',height='+y+',resizable=0,scrollbars=yes,menubar=no');
}

function main_noSpam(user,domain)
{
 locationstring="mailto:"+user+"@"+domain;
 window.location=locationstring;
}

function main_price(fr)
{
 var frsum=0;

 if(fr.power) 
  for(i=0;i<fr.power.length;i++) 
   if(fr.power[i].checked) frsum+=parseFloat(fr.power[i].value);
   
 if(fr.feat)
  for(i=0;i<fr.feat.length;i++)
   if(fr.feat[i].checked) frsum+=parseFloat(fr.feat[i].value);
  
 fr.sum.value=frsum;
 fr.sum2.value=frsum+frsum*0.22;
}

function main_openBrWindow(theURL,winName,features,x,y) 
{
 var winName = 'MM_openBrWindow';
 features = 'width='+x+',height='+y+',top=20,left=200,toolbar=no,location=no,status=no,scrollbars=no,resizable=no'
 var oWin = window.open(theURL,winName,features);
 if(oWin==null || typeof(oWin)=="undefined")
 {
  alert('Please turn off the Pop-up blocker to view this feature.\nThank you!');
 } 
}
	
