$(document).ready(function(){$("#orderForm").validate();$("a#cmsint").click(function(){$("#cmsIntegrate").toggle('slow');});$("a#prodettog").click(function(){$("#proDetails").toggle('slow');});});function updatePprice(){var count=document.getElementById('pcount').value;var pprice;if(count>1){pprice=((count-1)*30)+50;}else{pprice=50;}
return(pprice);}
function updateWprice(){var count=document.getElementsByName('width');for(var i=0;i<count.length;i++)
{if(count[i].checked)
{var valued=count[i].value;}}
var pprice;if(valued!='Fluid'){pprice=0;}else{pprice=10;}
return(pprice);}
function updateSprice(){var count=document.getElementsByName('sifr');for(var i=0;i<count.length;i++)
{if(count[i].checked)
{var valued=count[i].value;}}
var pprice;if(valued!='Yes'){pprice=0;}else{pprice=19;}
return(pprice);}
function updateDprice(){var count=document.getElementsByName('dmenu');for(var i=0;i<count.length;i++)
{if(count[i].checked)
{var valued=count[i].value;}}
var pprice;if(valued!='Yes'){pprice=0;}else{pprice=19;}
return(pprice);}
function updateCcprice(){var count=document.getElementsByName('ccode');for(var i=0;i<count.length;i++)
{if(count[i].checked)
{var valued=count[i].value;}}
var pprice;if(valued!='Yes'){pprice=0;}else{pprice=9;}
return(pprice);}
function updateCsprice(){var count=document.getElementsByName('ctype');for(var i=0;i<count.length;i++)
{if(count[i].checked)
{var valued=count[i].value;}}
var pprice;if(valued!='W3C Valid XHTML 1.0 Strict'){pprice=0;}else{pprice=10;}
return(pprice);}
function updateCMSprice(){var count=document.getElementsByName('cms');for(var i=0;i<count.length;i++)
{if(count[i].checked)
{var valued=count[i].value;}}
var pprice;if(valued=='xHTML'){pprice=0;}
if(valued=='Joomla 1.0.x'){pprice=200;}
if(valued=='Joomla 1.5.x'){pprice=200;}
if(valued=='Word Press'){pprice=150;}
if(valued=='Drupal'){pprice=200;}
if(valued=='osCommerce'){pprice=200;}
if(valued=='Blogger'){pprice=150;}
if(valued=='Pligg'){pprice=250;}
if(valued=='Phpbb3'){pprice=250;}
if(valued=='Phpbb2'){pprice=250;}
if(valued=='Moodle'){pprice=350;}
return(pprice);}
function updateTotal(){var pcount=updatePprice();var pwidth=updateWprice();var psifr=updateSprice();var pddown=updateDprice();var pccode=updateCcprice();var pcodestd=updateCsprice();var pcms=updateCMSprice();var total=pcount+pwidth+psifr+pddown+pccode+pcodestd+pcms;document.getElementById('orderTotal').value=total;document.getElementById('orderTotal2').innerHTML='$'+total;}
