function main_ConfirmLink(theLink,theQuery)
{
 var is_confirmed=confirm(theQuery);
 if(is_confirmed) theLink.href += '&is_js_confirmed=1'; 
 return is_confirmed;
}

function main_ChangeBkColor(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;
 
 for(i=0;i<fr.power.length;i++)
 {
  if(fr.power[i].checked) frsum+=parseFloat(fr.power[i].value);
 }
 for(i=0;i<fr.feat.length;i++)
 {
  if(fr.feat[i].checked) frsum+=parseFloat(fr.feat[i].value);
 }  
 fr.sum.value=frsum;
}

function main_openBrWindow(theURL,winName,features) 
{
 var winName = 'MM_openBrWindow';
 features = 'width=741,height=544,top=100,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!');
 } 
}
	
