// JavaScript Document

function buildSelect() { //alert(x) ; //return
x = document.f1.typeOW.value

for (var q=f1.levelOW.options.length;q>=0;q--) 
f1.levelOW.options[q]=null;

for (var q=f1.WDelivery.options.length;q>=0;q--) 
f1.WDelivery.options[q]=null;

for (var q=f1.numberOP.options.length;q>=0;q--) 
f1.numberOP.options[q]=null;

var abc=new Array()

document.f1.totalPaid.value = "0.00"
document.f1.totalPaid3.value = "0.00"


if (x == "Essay") {
j = 1
for (var i = j; i <= 300; i++)
abc[i]=new Option(i, i)

abc1 = new Option("Select Number of Pages","0")
document.f1.numberOP.options[0] = abc1

for (var k = j; k <= 300; k++)
document.f1.numberOP.options[k] = abc[k]




  /* set choices 1 and 2 */

  option0 = new Option("Select Level of Work","0")
  option1 = new Option("High School","High School")
  option2 = new Option("College","College")
  option3 = new Option("Bachelor","Bachelor")
  option4 = new Option("Graduate","Graduate")
  option5 = new Option("Masters","Masters")
  // write them
  document.f1.levelOW.options[0] = option0
  document.f1.levelOW.options[1] = option1
  document.f1.levelOW.options[2] = option2
  document.f1.levelOW.options[3] = option3
  document.f1.levelOW.options[4] = option4
  document.f1.levelOW.options[5] = option5
  
  
  option0 = new Option("Select Work Delivery Period","0")
  option1 = new Option("14 Days","14 Days")
  option2 = new Option("6-7 Days","6-7 Days")
  option3 = new Option("5 Days","5 Days")
  option4 = new Option("4 Days","4 Days")
  option5 = new Option("3 Days","3 Days")
  option6 = new Option("48 Hours","48 Hours")
  option7 = new Option("24 Hours","24 Hours")
  // write them
  document.f1.WDelivery.options[0] = option0
  document.f1.WDelivery.options[1] = option1
  document.f1.WDelivery.options[2] = option2
  document.f1.WDelivery.options[3] = option3
  document.f1.WDelivery.options[4] = option4
  document.f1.WDelivery.options[5] = option5
  document.f1.WDelivery.options[6] = option6
  document.f1.WDelivery.options[7] = option7

  return;
  }
  
else if (x == "None")
{
	abc1 = new Option("Select Number of Pages","0")
	document.f1.numberOP.options[0] = abc1
  
  option0 = new Option("Select Level of Work","--")
  document.f1.levelOW.options[0] = option0
  
  option0 = new Option("Select Work Delivery Period","0")
  document.f1.WDelivery.options[0] = option0
  return;
}


if (x == "Dissertation") { 


for (var i = 1; i <= 297; i++)
abc[i]=new Option(i+3, i+3)

abc1 = new Option("Select Number of Pages","0")
document.f1.numberOP.options[0] = abc1

for (var k = 1; k <= 297; k++)
document.f1.numberOP.options[k] = abc[k]


  /* set choices 1 and 2 */
  option0 = new Option("Select Level of Work","0")
  option1 = new Option("Undergraduate","Undergraduate")
  option2 = new Option("Masters","Masters")
  // write them
  document.f1.levelOW.options[0] = option0
  document.f1.levelOW.options[1] = option1
  document.f1.levelOW.options[2] = option2
  
  
  option0 = new Option("Select Work Delivery Period","0")
  option1 = new Option("45 Days","45 Days")
  option2 = new Option("30 Days","30 Days")
  option3 = new Option("15 Days","15 Days")
  option4 = new Option("7 Days","7 Days")
  option5 = new Option("4 Days","4 Days")
  // write them
  document.f1.WDelivery.options[0] = option0
  document.f1.WDelivery.options[1] = option1
  document.f1.WDelivery.options[2] = option2
  document.f1.WDelivery.options[3] = option3
  document.f1.WDelivery.options[4] = option4
  document.f1.WDelivery.options[5] = option5

  return;
  }
if (x == "Editing") { 
j = 1
for (var i = j; i <= 300; i++)
abc[i]=new Option(i, i)

abc1 = new Option("Select Number of Pages","0")
document.f1.numberOP.options[0] = abc1

for (var k = j; k <= 300; k++)
document.f1.numberOP.options[k] = abc[k]
  
  option0 = new Option("Select Level of Work","--")
  // write them
  document.f1.levelOW.options[0] = option0

  option0 = new Option("Select Work Delivery Period","0")
  option1 = new Option("14 Days","14 Days")
  option2 = new Option("6-7 Days","6-7 Days")
  option3 = new Option("5 Days","5 Days")
  option4 = new Option("4 Days","4 Days")
  option5 = new Option("3 Days","3 Days")
  option6 = new Option("48 Hours","48 Hours")
  option7 = new Option("24 Hours","24 Hours")
  // write them
  document.f1.WDelivery.options[0] = option0
  document.f1.WDelivery.options[1] = option1
  document.f1.WDelivery.options[2] = option2
  document.f1.WDelivery.options[3] = option3
  document.f1.WDelivery.options[4] = option4
  document.f1.WDelivery.options[5] = option5
  document.f1.WDelivery.options[6] = option6
  document.f1.WDelivery.options[7] = option7

  return;
  } 

if (x == "Financial Analysis") { 
j = 1
for (var i = j; i <= 300; i++)
abc[i]=new Option(i, i)

abc1 = new Option("Select Number of Pages","0")
document.f1.numberOP.options[0] = abc1

for (var k = j; k <= 300; k++)
document.f1.numberOP.options[k] = abc[k]
  /* set choices 1 and 2 */

  option0 = new Option("Select Level of Work","0")
  option1 = new Option("High School","High School")
  option2 = new Option("College","College")
  option3 = new Option("Bachelor","Bachelor")
  option4 = new Option("Graduate","Graduate")
  option5 = new Option("Masters","Masters")
  // write them
  document.f1.levelOW.options[0] = option0
  document.f1.levelOW.options[1] = option1
  document.f1.levelOW.options[2] = option2
  document.f1.levelOW.options[3] = option3
  document.f1.levelOW.options[4] = option4
  document.f1.levelOW.options[5] = option5
  
  
  option0 = new Option("Select Work Delivery Period","0")
  option1 = new Option("14 Days","14 Days")
  option2 = new Option("6-7 Days","6-7 Days")
  option3 = new Option("5 Days","5 Days")
  option4 = new Option("4 Days","4 Days")
  option5 = new Option("3 Days","3 Days")
  option6 = new Option("48 Hours","48 Hours")
  option7 = new Option("24 Hours","24 Hours")
  // write them
  document.f1.WDelivery.options[0] = option0
  document.f1.WDelivery.options[1] = option1
  document.f1.WDelivery.options[2] = option2
  document.f1.WDelivery.options[3] = option3
  document.f1.WDelivery.options[4] = option4
  document.f1.WDelivery.options[5] = option5
  document.f1.WDelivery.options[6] = option6
  document.f1.WDelivery.options[7] = option7

  return;
  }

if (x == "PowerPoint Presentation") { 
j = 1
for (var i = j; i <= 300; i++)
abc[i]=new Option(i, i)

abc1 = new Option("Select Number of Pages","0")
document.f1.numberOP.options[0] = abc1

for (var k = j; k <= 300; k++)
document.f1.numberOP.options[k] = abc[k]

  option0 = new Option("Select Level of Work","--")
  // write them
  document.f1.levelOW.options[0] = option0
  
  option0 = new Option("Select Work Delivery Period","0")
  option1 = new Option("14 Days","14 Days")
  option2 = new Option("6-7 Days","6-7 Days")
  option3 = new Option("5 Days","5 Days")
  option4 = new Option("4 Days","4 Days")
  option5 = new Option("3 Days","3 Days")
  option6 = new Option("48 Hours","48 Hours")
  option7 = new Option("24 Hours","24 Hours")
  // write them
  document.f1.WDelivery.options[0] = option0
  document.f1.WDelivery.options[1] = option1
  document.f1.WDelivery.options[2] = option2
  document.f1.WDelivery.options[3] = option3
  document.f1.WDelivery.options[4] = option4
  document.f1.WDelivery.options[5] = option5
  document.f1.WDelivery.options[6] = option6
  document.f1.WDelivery.options[7] = option7

  return;
  } 

if (x == "Corporate Research") { 
j = 1
for (var i = j; i <= 300; i++)
abc[i]=new Option(i, i)

abc1 = new Option("Select Number of Pages","0")
document.f1.numberOP.options[0] = abc1

for (var k = j; k <= 300; k++)
document.f1.numberOP.options[k] = abc[k]

  option0 = new Option("Select Level of Work","--")
  // write them
  document.f1.levelOW.options[0] = option0

  
  option0 = new Option("Select Work Delivery Period","0")
  option1 = new Option("14 Days","14 Days")
  option2 = new Option("6-7 Days","6-7 Days")
  // write them
  document.f1.WDelivery.options[0] = option0
  document.f1.WDelivery.options[1] = option1
  document.f1.WDelivery.options[2] = option2

  return;
  } 


}



function calc(){
//high school rate
if (document.f1.typeOW.value == "Essay"&&document.f1.levelOW.value == "High School"&&document.f1.WDelivery.value == "14 Days")
{
document.f1.totalPaid.value = (document.f1.numberOP.value * 9.95).toFixed(2)
}
if (document.f1.typeOW.value == "Essay"&&document.f1.levelOW.value == "High School"&&document.f1.WDelivery.value == "6-7 Days")
{
document.f1.totalPaid.value = (document.f1.numberOP.value * 11.95).toFixed(2)
}
if (document.f1.typeOW.value == "Essay"&&document.f1.levelOW.value == "High School"&&document.f1.WDelivery.value == "5 Days")
{
document.f1.totalPaid.value = (document.f1.numberOP.value * 13.95).toFixed(2)
}
if (document.f1.typeOW.value == "Essay"&&document.f1.levelOW.value == "High School"&&document.f1.WDelivery.value == "4 Days")
{
document.f1.totalPaid.value = (document.f1.numberOP.value * 15.95).toFixed(2)
}
if (document.f1.typeOW.value == "Essay"&&document.f1.levelOW.value == "High School"&&document.f1.WDelivery.value == "3 Days")
{
document.f1.totalPaid.value = (document.f1.numberOP.value * 17.95).toFixed(2)
}
if (document.f1.typeOW.value == "Essay"&&document.f1.levelOW.value == "High School"&&document.f1.WDelivery.value == "48 Hours")
{
document.f1.totalPaid.value = (document.f1.numberOP.value * 19.95).toFixed(2)
}
if (document.f1.typeOW.value == "Essay"&&document.f1.levelOW.value == "High School"&&document.f1.WDelivery.value == "24 Hours")
{
document.f1.totalPaid.value = (document.f1.numberOP.value * 21.95).toFixed(2)
}

//college rate
if (document.f1.typeOW.value == "Essay"&&document.f1.levelOW.value == "College"&&document.f1.WDelivery.value == "14 Days")
{
document.f1.totalPaid.value = (document.f1.numberOP.value * 11.95).toFixed(2)
}
if (document.f1.typeOW.value == "Essay"&&document.f1.levelOW.value == "College"&&document.f1.WDelivery.value == "6-7 Days")
{
document.f1.totalPaid.value = (document.f1.numberOP.value * 13.95).toFixed(2)
}
if (document.f1.typeOW.value == "Essay"&&document.f1.levelOW.value == "College"&&document.f1.WDelivery.value == "5 Days")
{
document.f1.totalPaid.value = (document.f1.numberOP.value * 15.95).toFixed(2)
}
if (document.f1.typeOW.value == "Essay"&&document.f1.levelOW.value == "College"&&document.f1.WDelivery.value == "4 Days")
{
document.f1.totalPaid.value = (document.f1.numberOP.value * 17.95).toFixed(2)
}
if (document.f1.typeOW.value == "Essay"&&document.f1.levelOW.value == "College"&&document.f1.WDelivery.value == "3 Days")
{
document.f1.totalPaid.value = (document.f1.numberOP.value * 19.95).toFixed(2)
}
if (document.f1.typeOW.value == "Essay"&&document.f1.levelOW.value == "College"&&document.f1.WDelivery.value == "48 Hours")
{
document.f1.totalPaid.value = (document.f1.numberOP.value * 21.95).toFixed(2)
}
if (document.f1.typeOW.value == "Essay"&&document.f1.levelOW.value == "College"&&document.f1.WDelivery.value == "24 Hours")
{
document.f1.totalPaid.value = (document.f1.numberOP.value * 23.95).toFixed(2)
}

//Bachelor 
if (document.f1.typeOW.value == "Essay"&&document.f1.levelOW.value == "Bachelor"&&document.f1.WDelivery.value == "14 Days")
{
document.f1.totalPaid.value = (document.f1.numberOP.value * 13.95).toFixed(2)
}
if (document.f1.typeOW.value == "Essay"&&document.f1.levelOW.value == "Bachelor"&&document.f1.WDelivery.value == "6-7 Days")
{
document.f1.totalPaid.value = (document.f1.numberOP.value * 15.95).toFixed(2)
}
if (document.f1.typeOW.value == "Essay"&&document.f1.levelOW.value == "Bachelor"&&document.f1.WDelivery.value == "5 Days")
{
document.f1.totalPaid.value = (document.f1.numberOP.value * 17.95).toFixed(2)
}
if (document.f1.typeOW.value == "Essay"&&document.f1.levelOW.value == "Bachelor"&&document.f1.WDelivery.value == "4 Days")
{
document.f1.totalPaid.value = (document.f1.numberOP.value * 19.95).toFixed(2)
}
if (document.f1.typeOW.value == "Essay"&&document.f1.levelOW.value == "Bachelor"&&document.f1.WDelivery.value == "3 Days")
{
document.f1.totalPaid.value = (document.f1.numberOP.value * 21.95).toFixed(2)
}
if (document.f1.typeOW.value == "Essay"&&document.f1.levelOW.value == "Bachelor"&&document.f1.WDelivery.value == "48 Hours")
{
document.f1.totalPaid.value = (document.f1.numberOP.value * 23.95).toFixed(2)
}
if (document.f1.typeOW.value == "Essay"&&document.f1.levelOW.value == "Bachelor"&&document.f1.WDelivery.value == "24 Hours")
{
document.f1.totalPaid.value = (document.f1.numberOP.value * 25.95).toFixed(2)
}

//Graduate 
if (document.f1.typeOW.value == "Essay"&&document.f1.levelOW.value == "Graduate"&&document.f1.WDelivery.value == "14 Days")
{
document.f1.totalPaid.value = (document.f1.numberOP.value * 15.95).toFixed(2)
}
if (document.f1.typeOW.value == "Essay"&&document.f1.levelOW.value == "Graduate"&&document.f1.WDelivery.value == "6-7 Days")
{
document.f1.totalPaid.value = (document.f1.numberOP.value * 17.95).toFixed(2)
}
if (document.f1.typeOW.value == "Essay"&&document.f1.levelOW.value == "Graduate"&&document.f1.WDelivery.value == "5 Days")
{
document.f1.totalPaid.value = (document.f1.numberOP.value * 19.95).toFixed(2)
}
if (document.f1.typeOW.value == "Essay"&&document.f1.levelOW.value == "Graduate"&&document.f1.WDelivery.value == "4 Days")
{
document.f1.totalPaid.value = (document.f1.numberOP.value * 21.95).toFixed(2)
}
if (document.f1.typeOW.value == "Essay"&&document.f1.levelOW.value == "Graduate"&&document.f1.WDelivery.value == "3 Days")
{
document.f1.totalPaid.value = (document.f1.numberOP.value * 23.95).toFixed(2)
}
if (document.f1.typeOW.value == "Essay"&&document.f1.levelOW.value == "Graduate"&&document.f1.WDelivery.value == "48 Hours")
{
document.f1.totalPaid.value = (document.f1.numberOP.value * 25.95).toFixed(2)
}
if (document.f1.typeOW.value == "Essay"&&document.f1.levelOW.value == "Graduate"&&document.f1.WDelivery.value == "24 Hours")
{
document.f1.totalPaid.value = (document.f1.numberOP.value * 27.95).toFixed(2)
}

//Masters 
if (document.f1.typeOW.value == "Essay"&&document.f1.levelOW.value == "Masters"&&document.f1.WDelivery.value == "14 Days")
{
document.f1.totalPaid.value = (document.f1.numberOP.value * 17.95).toFixed(2)
}
if (document.f1.typeOW.value == "Essay"&&document.f1.levelOW.value == "Masters"&&document.f1.WDelivery.value == "6-7 Days")
{
document.f1.totalPaid.value = (document.f1.numberOP.value * 19.95).toFixed(2)
}
if (document.f1.typeOW.value == "Essay"&&document.f1.levelOW.value == "Masters"&&document.f1.WDelivery.value == "5 Days")
{
document.f1.totalPaid.value = (document.f1.numberOP.value * 21.95).toFixed(2)
}
if (document.f1.typeOW.value == "Essay"&&document.f1.levelOW.value == "Masters"&&document.f1.WDelivery.value == "4 Days")
{
document.f1.totalPaid.value = (document.f1.numberOP.value * 23.95).toFixed(2)
}
if (document.f1.typeOW.value == "Essay"&&document.f1.levelOW.value == "Masters"&&document.f1.WDelivery.value == "3 Days")
{
document.f1.totalPaid.value = (document.f1.numberOP.value * 25.95).toFixed(2)
}
if (document.f1.typeOW.value == "Essay"&&document.f1.levelOW.value == "Masters"&&document.f1.WDelivery.value == "48 Hours")
{
document.f1.totalPaid.value = (document.f1.numberOP.value * 27.95).toFixed(2)
}
if (document.f1.typeOW.value == "Essay"&&document.f1.levelOW.value == "Masters"&&document.f1.WDelivery.value == "24 Hours")
{
document.f1.totalPaid.value = (document.f1.numberOP.value * 29.95).toFixed(2)
}





//Dissertation --> Undergraduate 
if (document.f1.typeOW.value == "Dissertation"&&document.f1.levelOW.value == "Undergraduate"&&document.f1.WDelivery.value == "45 Days")
{
document.f1.totalPaid.value = (document.f1.numberOP.value * 11.95).toFixed(2)
}
if (document.f1.typeOW.value == "Dissertation"&&document.f1.levelOW.value == "Undergraduate"&&document.f1.WDelivery.value == "30 Days")
{
document.f1.totalPaid.value = (document.f1.numberOP.value * 12.95).toFixed(2)
}
if (document.f1.typeOW.value == "Dissertation"&&document.f1.levelOW.value == "Undergraduate"&&document.f1.WDelivery.value == "15 Days")
{
document.f1.totalPaid.value = (document.f1.numberOP.value * 13.95).toFixed(2)
}
if (document.f1.typeOW.value == "Dissertation"&&document.f1.levelOW.value == "Undergraduate"&&document.f1.WDelivery.value == "7 Days")
{
document.f1.totalPaid.value = (document.f1.numberOP.value * 15.95).toFixed(2)
}
if (document.f1.typeOW.value == "Dissertation"&&document.f1.levelOW.value == "Undergraduate"&&document.f1.WDelivery.value == "4 Days")
{
document.f1.totalPaid.value = (document.f1.numberOP.value * 17.95).toFixed(2)
}

//Dissertation --> Masters 
if (document.f1.typeOW.value == "Dissertation"&&document.f1.levelOW.value == "Masters"&&document.f1.WDelivery.value == "45 Days")
{
document.f1.totalPaid.value = (document.f1.numberOP.value * 14.95).toFixed(2)
}
if (document.f1.typeOW.value == "Dissertation"&&document.f1.levelOW.value == "Masters"&&document.f1.WDelivery.value == "30 Days")
{
document.f1.totalPaid.value = (document.f1.numberOP.value * 15.95).toFixed(2)
}
if (document.f1.typeOW.value == "Dissertation"&&document.f1.levelOW.value == "Masters"&&document.f1.WDelivery.value == "15 Days")
{
document.f1.totalPaid.value = (document.f1.numberOP.value * 16.95).toFixed(2)
}
if (document.f1.typeOW.value == "Dissertation"&&document.f1.levelOW.value == "Masters"&&document.f1.WDelivery.value == "7 Days")
{
document.f1.totalPaid.value = (document.f1.numberOP.value * 18.95).toFixed(2)
}
if (document.f1.typeOW.value == "Dissertation"&&document.f1.levelOW.value == "Masters"&&document.f1.WDelivery.value == "4 Days")
{
document.f1.totalPaid.value = (document.f1.numberOP.value * 20.95).toFixed(2)
}







//Editing
if (document.f1.typeOW.value == "Editing"&&document.f1.WDelivery.value == "14 Days")
{
document.f1.totalPaid.value = (document.f1.numberOP.value * 4.95).toFixed(2)
}
if (document.f1.typeOW.value == "Editing"&&document.f1.WDelivery.value == "6-7 Days")
{
document.f1.totalPaid.value = (document.f1.numberOP.value * 5.95).toFixed(2)
}
if (document.f1.typeOW.value == "Editing"&&document.f1.WDelivery.value == "5 Days")
{
document.f1.totalPaid.value = (document.f1.numberOP.value * 7.95).toFixed(2)
}
if (document.f1.typeOW.value == "Editing"&&document.f1.WDelivery.value == "4 Days")
{
document.f1.totalPaid.value = (document.f1.numberOP.value * 9.50).toFixed(2)
}
if (document.f1.typeOW.value == "Editing"&&document.f1.WDelivery.value == "3 Days")
{
document.f1.totalPaid.value = (document.f1.numberOP.value * 10.95).toFixed(2)
}
if (document.f1.typeOW.value == "Editing"&&document.f1.WDelivery.value == "48 Hours")
{
document.f1.totalPaid.value = (document.f1.numberOP.value * 12.50).toFixed(2)
}
if (document.f1.typeOW.value == "Editing"&&document.f1.WDelivery.value == "24 Hours")
{
document.f1.totalPaid.value = (document.f1.numberOP.value * 13.95).toFixed(2)
}






//Financial analysis
//high school
if (document.f1.typeOW.value == "Financial Analysis"&&document.f1.levelOW.value == "High School"&&document.f1.WDelivery.value == "14 Days")
{
document.f1.totalPaid.value = (document.f1.numberOP.value * 9.95).toFixed(2)
}
if (document.f1.typeOW.value == "Financial Analysis"&&document.f1.levelOW.value == "High School"&&document.f1.WDelivery.value == "6-7 Days")
{
document.f1.totalPaid.value = (document.f1.numberOP.value * 11.95).toFixed(2)
}
if (document.f1.typeOW.value == "Financial Analysis"&&document.f1.levelOW.value == "High School"&&document.f1.WDelivery.value == "5 Days")
{
document.f1.totalPaid.value = (document.f1.numberOP.value * 13.95).toFixed(2)
}
if (document.f1.typeOW.value == "Financial Analysis"&&document.f1.levelOW.value == "High School"&&document.f1.WDelivery.value == "4 Days")
{
document.f1.totalPaid.value = (document.f1.numberOP.value * 15.95).toFixed(2)
}
if (document.f1.typeOW.value == "Financial Analysis"&&document.f1.levelOW.value == "High School"&&document.f1.WDelivery.value == "3 Days")
{
document.f1.totalPaid.value = (document.f1.numberOP.value * 17.95).toFixed(2)
}
if (document.f1.typeOW.value == "Financial Analysis"&&document.f1.levelOW.value == "High School"&&document.f1.WDelivery.value == "48 Hours")
{

document.f1.totalPaid.value = (document.f1.numberOP.value * 19.95).toFixed(2)
}
if (document.f1.typeOW.value == "Financial Analysis"&&document.f1.levelOW.value == "High School"&&document.f1.WDelivery.value == "24 Hours")
{
document.f1.totalPaid.value = (document.f1.numberOP.value * 21.95).toFixed(2)
}

//college rate
if (document.f1.typeOW.value == "Financial Analysis"&&document.f1.levelOW.value == "College"&&document.f1.WDelivery.value == "14 Days")
{
document.f1.totalPaid.value = (document.f1.numberOP.value * 11.95).toFixed(2)
}
if (document.f1.typeOW.value == "Financial Analysis"&&document.f1.levelOW.value == "College"&&document.f1.WDelivery.value == "6-7 Days")
{
document.f1.totalPaid.value = (document.f1.numberOP.value * 13.95).toFixed(2)
}
if (document.f1.typeOW.value == "Financial Analysis"&&document.f1.levelOW.value == "College"&&document.f1.WDelivery.value == "5 Days")
{
document.f1.totalPaid.value = (document.f1.numberOP.value * 15.95).toFixed(2)
}
if (document.f1.typeOW.value == "Financial Analysis"&&document.f1.levelOW.value == "College"&&document.f1.WDelivery.value == "4 Days")
{
document.f1.totalPaid.value = (document.f1.numberOP.value * 17.95).toFixed(2)
}
if (document.f1.typeOW.value == "Financial Analysis"&&document.f1.levelOW.value == "College"&&document.f1.WDelivery.value == "3 Days")
{
document.f1.totalPaid.value = (document.f1.numberOP.value * 19.95).toFixed(2)
}
if (document.f1.typeOW.value == "Financial Analysis"&&document.f1.levelOW.value == "College"&&document.f1.WDelivery.value == "48 Hours")
{
document.f1.totalPaid.value = (document.f1.numberOP.value * 21.95).toFixed(2)
}
if (document.f1.typeOW.value == "Financial Analysis"&&document.f1.levelOW.value == "College"&&document.f1.WDelivery.value == "24 Hours")
{
document.f1.totalPaid.value = (document.f1.numberOP.value * 23.95).toFixed(2)
}

//Bachelor 
if (document.f1.typeOW.value == "Financial Analysis"&&document.f1.levelOW.value == "Bachelor"&&document.f1.WDelivery.value == "14 Days")
{
document.f1.totalPaid.value = (document.f1.numberOP.value * 13.95).toFixed(2)
}
if (document.f1.typeOW.value == "Financial Analysis"&&document.f1.levelOW.value == "Bachelor"&&document.f1.WDelivery.value == "6-7 Days")
{
document.f1.totalPaid.value = (document.f1.numberOP.value * 15.95).toFixed(2)
}
if (document.f1.typeOW.value == "Financial Analysis"&&document.f1.levelOW.value == "Bachelor"&&document.f1.WDelivery.value == "5 Days")
{
document.f1.totalPaid.value = (document.f1.numberOP.value * 17.95).toFixed(2)
}
if (document.f1.typeOW.value == "Financial Analysis"&&document.f1.levelOW.value == "Bachelor"&&document.f1.WDelivery.value == "4 Days")
{
document.f1.totalPaid.value = (document.f1.numberOP.value * 19.95).toFixed(2)
}
if (document.f1.typeOW.value == "Financial Analysis"&&document.f1.levelOW.value == "Bachelor"&&document.f1.WDelivery.value == "3 Days")
{
document.f1.totalPaid.value = (document.f1.numberOP.value * 21.95).toFixed(2)
}
if (document.f1.typeOW.value == "Financial Analysis"&&document.f1.levelOW.value == "Bachelor"&&document.f1.WDelivery.value == "48 Hours")
{
document.f1.totalPaid.value = (document.f1.numberOP.value * 23.95).toFixed(2)
}
if (document.f1.typeOW.value == "Financial Analysis"&&document.f1.levelOW.value == "Bachelor"&&document.f1.WDelivery.value == "24 Hours")
{
document.f1.totalPaid.value = (document.f1.numberOP.value * 25.95).toFixed(2)
}

//Graduate 
if (document.f1.typeOW.value == "Financial Analysis"&&document.f1.levelOW.value == "Graduate"&&document.f1.WDelivery.value == "14 Days")
{
document.f1.totalPaid.value = (document.f1.numberOP.value * 15.95).toFixed(2)
}
if (document.f1.typeOW.value == "Financial Analysis"&&document.f1.levelOW.value == "Graduate"&&document.f1.WDelivery.value == "6-7 Days")
{
document.f1.totalPaid.value = (document.f1.numberOP.value * 17.95).toFixed(2)
}
if (document.f1.typeOW.value == "Financial Analysis"&&document.f1.levelOW.value == "Graduate"&&document.f1.WDelivery.value == "5 Days")
{
document.f1.totalPaid.value = (document.f1.numberOP.value * 19.95).toFixed(2)
}
if (document.f1.typeOW.value == "Financial Analysis"&&document.f1.levelOW.value == "Graduate"&&document.f1.WDelivery.value == "4 Days")
{
document.f1.totalPaid.value = (document.f1.numberOP.value * 21.95).toFixed(2)
}
if (document.f1.typeOW.value == "Financial Analysis"&&document.f1.levelOW.value == "Graduate"&&document.f1.WDelivery.value == "3 Days")
{
document.f1.totalPaid.value = (document.f1.numberOP.value * 23.95).toFixed(2)
}
if (document.f1.typeOW.value == "Financial Analysis"&&document.f1.levelOW.value == "Graduate"&&document.f1.WDelivery.value == "48 Hours")
{
document.f1.totalPaid.value = (document.f1.numberOP.value * 25.95).toFixed(2)
}
if (document.f1.typeOW.value == "Financial Analysis"&&document.f1.levelOW.value == "Graduate"&&document.f1.WDelivery.value == "24 Hours")
{
document.f1.totalPaid.value = (document.f1.numberOP.value * 27.95).toFixed(2)
}

//Masters 
if (document.f1.typeOW.value == "Financial Analysis"&&document.f1.levelOW.value == "Masters"&&document.f1.WDelivery.value == "14 Days")
{
document.f1.totalPaid.value = (document.f1.numberOP.value * 17.95).toFixed(2)
}
if (document.f1.typeOW.value == "Financial Analysis"&&document.f1.levelOW.value == "Masters"&&document.f1.WDelivery.value == "6-7 Days")
{
document.f1.totalPaid.value = (document.f1.numberOP.value * 19.95).toFixed(2)
}
if (document.f1.typeOW.value == "Financial Analysis"&&document.f1.levelOW.value == "Masters"&&document.f1.WDelivery.value == "5 Days")
{
document.f1.totalPaid.value = (document.f1.numberOP.value * 21.95).toFixed(2)
}
if (document.f1.typeOW.value == "Financial Analysis"&&document.f1.levelOW.value == "Masters"&&document.f1.WDelivery.value == "4 Days")
{
document.f1.totalPaid.value = (document.f1.numberOP.value * 23.95).toFixed(2)
}
if (document.f1.typeOW.value == "Financial Analysis"&&document.f1.levelOW.value == "Masters"&&document.f1.WDelivery.value == "3 Days")
{
document.f1.totalPaid.value = (document.f1.numberOP.value * 25.95).toFixed(2)
}
if (document.f1.typeOW.value == "Financial Analysis"&&document.f1.levelOW.value == "Masters"&&document.f1.WDelivery.value == "48 Hours")
{
document.f1.totalPaid.value = (document.f1.numberOP.value * 27.95).toFixed(2)
}
if (document.f1.typeOW.value == "Financial Analysis"&&document.f1.levelOW.value == "Masters"&&document.f1.WDelivery.value == "24 Hours")
{
document.f1.totalPaid.value = (document.f1.numberOP.value * 29.95).toFixed(2)
}







//PowerPoint -> rMaterial = "yes"
if (document.f1.typeOW.value == "PowerPoint Presentation"&&document.f1.WDelivery.value == "14 Days"&&(document.f1.rMaterial[0].checked)&&document.f1.rMaterial[0].value == "yes")
{
document.f1.totalPaid.value = (document.f1.numberOP.value * 5.95).toFixed(2)
}
if (document.f1.typeOW.value == "PowerPoint Presentation"&&document.f1.WDelivery.value == "6-7 Days"&&(document.f1.rMaterial[0].checked)&&document.f1.rMaterial[0].value == "yes")
{
document.f1.totalPaid.value = (document.f1.numberOP.value * 7.95).toFixed(2)
}
if (document.f1.typeOW.value == "PowerPoint Presentation"&&document.f1.WDelivery.value == "5 Days"&&(document.f1.rMaterial[0].checked)&&document.f1.rMaterial[0].value == "yes")
{
document.f1.totalPaid.value = (document.f1.numberOP.value * 9.95).toFixed(2)
}
if (document.f1.typeOW.value == "PowerPoint Presentation"&&document.f1.WDelivery.value == "4 Days"&&(document.f1.rMaterial[0].checked)&&document.f1.rMaterial[0].value == "yes")
{
document.f1.totalPaid.value = (document.f1.numberOP.value * 11.95).toFixed(2)
}
if (document.f1.typeOW.value == "PowerPoint Presentation"&&document.f1.WDelivery.value == "3 Days"&&(document.f1.rMaterial[0].checked)&&document.f1.rMaterial[0].value == "yes")
{
document.f1.totalPaid.value = (document.f1.numberOP.value * 13.95).toFixed(2)
}
if (document.f1.typeOW.value == "PowerPoint Presentation"&&document.f1.WDelivery.value == "48 Hours"&&(document.f1.rMaterial[0].checked)&&document.f1.rMaterial[0].value == "yes")
{
document.f1.totalPaid.value = (document.f1.numberOP.value * 15.95).toFixed(2)
}
if (document.f1.typeOW.value == "PowerPoint Presentation"&&document.f1.WDelivery.value == "24 Hours"&&(document.f1.rMaterial[0].checked)&&document.f1.rMaterial[0].value == "yes")
{
document.f1.totalPaid.value = (document.f1.numberOP.value * 17.95).toFixed(2)
}






//PowerPoint -> rMaterial = "no"
if (document.f1.typeOW.value == "PowerPoint Presentation"&&document.f1.WDelivery.value == "14 Days"&&(document.f1.rMaterial[1].checked)&&document.f1.rMaterial[1].value == "no")
{
document.f1.totalPaid.value = (document.f1.numberOP.value * 12.95).toFixed(2)
}
if (document.f1.typeOW.value == "PowerPoint Presentation"&&document.f1.WDelivery.value == "6-7 Days"&&(document.f1.rMaterial[1].checked)&&document.f1.rMaterial[1].value == "no")
{
document.f1.totalPaid.value = (document.f1.numberOP.value * 14.95).toFixed(2)
}
if (document.f1.typeOW.value == "PowerPoint Presentation"&&document.f1.WDelivery.value == "5 Days"&&(document.f1.rMaterial[1].checked)&&document.f1.rMaterial[1].value == "no")
{
document.f1.totalPaid.value = (document.f1.numberOP.value * 16.95).toFixed(2)
}
if (document.f1.typeOW.value == "PowerPoint Presentation"&&document.f1.WDelivery.value == "4 Days"&&(document.f1.rMaterial[1].checked)&&document.f1.rMaterial[1].value == "no")
{
document.f1.totalPaid.value = (document.f1.numberOP.value * 18.95).toFixed(2)
}
if (document.f1.typeOW.value == "PowerPoint Presentation"&&document.f1.WDelivery.value == "3 Days"&&(document.f1.rMaterial[1].checked)&&document.f1.rMaterial[1].value == "no")
{
document.f1.totalPaid.value = (document.f1.numberOP.value * 20.95).toFixed(2)
}
if (document.f1.typeOW.value == "PowerPoint Presentation"&&document.f1.WDelivery.value == "48 Hours"&&(document.f1.rMaterial[1].checked)&&document.f1.rMaterial[1].value == "no")
{
document.f1.totalPaid.value = (document.f1.numberOP.value * 22.95).toFixed(2)
}
if (document.f1.typeOW.value == "PowerPoint Presentation"&&document.f1.WDelivery.value == "24 Hours"&&(document.f1.rMaterial[1].checked)&&document.f1.rMaterial[1].value == "no")
{
document.f1.totalPaid.value = (document.f1.numberOP.value * 24.95).toFixed(2)
}







//Corporate Research
if (document.f1.typeOW.value == "Corporate Research"&&document.f1.WDelivery.value == "14 Days")
{
document.f1.totalPaid.value = (document.f1.numberOP.value * 50.00).toFixed(2)
}
if (document.f1.typeOW.value == "Corporate Research"&&document.f1.WDelivery.value == "6-7 Days")
{
document.f1.totalPaid.value = (document.f1.numberOP.value * 75.00).toFixed(2)
}


}



function submit1(){
document.f1.totalPaid2.value = document.f1.totalPaid.value
document.f1.totalPaid4.value = document.f1.totalPaid3.value


	if (echeck(document.f1.email.value)==false){
	document.f1.email.value="";
	document.f1.email.focus();
		return 
	}


if (document.f1.email.value == ""){
alert("Please enter email address!")
document.f1.email.focus()
return
}

if (!(document.f1.rUser[0].checked||document.f1.rUser[1].checked)){
alert("Are you already a user. Please select.")
document.f1.rUser[0].focus()
return
}

if (document.f1.rUser[1].checked){

if (! (document.f1.email1.value == document.f1.email.value)){
alert("Email address and confirm email address are not same")
document.f1.email1.focus()
return
}
if (document.f1.howw.value == "None"){
alert("Please tell how did you hear about us?")
document.f1.howw.focus()
return
}
if (document.f1.uName.value == ""){
alert("Please enter full name!")
document.f1.uName.focus()
return
}
if (document.f1.address.value == ""){
alert("Please enter address!")
document.f1.address.focus()
return
}
if (document.f1.country.value == "None" && document.f1.country1.value == ""){
alert("Please select country!")
document.f1.country.focus()
return
}
if (document.f1.tel.value == ""){
alert("Please enter contact number!")
document.f1.tel.focus()
return
}
}




if (document.f1.areaOW.value == ""){
alert("Please describe area of work!")
document.f1.areaOW.focus()
return
}

if (document.f1.topic.value == ""){
alert("Please provide topic!")
document.f1.topic.focus()
return
}

if (document.f1.styleOW.value == "None"){
alert("Please provide style of work!")
document.f1.styleOW.focus()
return
}

if (document.f1.languageReq.value == "None"){
alert("Please provide language requirement!")
document.f1.languageReq.focus()
return
}

if (document.f1.WSI.value == ""){
alert("Please provide work specific instructions!")
document.f1.WSI.focus()
return
}

if (document.f1.sources.value == "None"){
alert("Please specify number of sources!")
document.f1.sources.focus()
return
}

if (document.f1.typeOW.value == "None"||document.f1.typeOW.value == ""){
alert("Please describe type of work!\nIf you come to this page using Back button, kindly Refresh (Press F5) your web page.")
document.f1.typeOW.focus()
return
}

if (document.f1.levelOW.value == "0"||document.f1.levelOW.value == ""){
alert("Please describe level of work!\nIf you come to this page using Back button, kindly Refresh (Press F5) your web page.")
document.f1.levelOW.focus();
return
}

if (document.f1.WDelivery.value == "0"||document.f1.WDelivery.value == ""){
alert("Please select work delivery!\nIf you come to this page using Back button, kindly Refresh (Press F5) your web page.")
document.f1.WDelivery.focus();
return
}

if (document.f1.numberOP.value == "0"||document.f1.numberOP.value == ""){
alert("Please enter page numbers\nIf you come to this page using back Button, kindly Refresh (Press F5) your web page.")
document.f1.numberOP.focus()
return
}

if (document.f1.totalPaid.value == "0"||document.f1.totalPaid.value == ""){
alert("Since the total price is '0'\nYou can not submit this form\nPlease select the appropriate option")
document.f1.levelOW.focus()
return
}


if (!(document.f1.po[0].checked||document.f1.po[1].checked)){
alert("Please select a payment option")
document.f1.po[0].focus()
return
}


if (!document.f1.agree.checked){
alert("You have to agree with our terms and conditions")
document.f1.agree.focus()
return
}


if (document.f1.country.value == "None"){
document.f1.country.value = document.f1.country1.value
}


document.f1.submit();
}

function PP(){
if (document.f1.typeOW.value == "PowerPoint Presentation"&&!(document.f1.rMaterial[0].checked||document.f1.rMaterial[1].checked)){

alert ("Are you providing Presentation Material? Please select to see the rates!")
}
}


function disc(){
				if (document.f1.numberOP.value <= 49) {
				document.f1.totalPaid3.value = (document.f1.totalPaid.value - (document.f1.totalPaid.value*5/100)).toFixed(2) ;
						}
				
				else if (document.f1.numberOP.value <= 99 && document.f1.numberOP.value >= 50){
				document.f1.totalPaid3.value = (document.f1.totalPaid.value - (document.f1.totalPaid.value*10/100)).toFixed(2);
						}
				
				else if (document.f1.numberOP.value >= 100){
				document.f1.totalPaid3.value = (document.f1.totalPaid.value - (document.f1.totalPaid.value*15/100)).toFixed(2);
						}
				}


function db(a){
if (a==1){
document.f1.email1.style.background="#CCCCCC";
document.f1.email1.disabled=true;
document.f1.altEmail.style.background="#CCCCCC";
document.f1.altEmail.disabled=true;
document.f1.uName.style.background="#CCCCCC";
document.f1.uName.disabled=true;
document.f1.address.style.background="#CCCCCC";
document.f1.address.disabled=true;
document.f1.country.style.background="#CCCCCC";
document.f1.country.disabled=true;
document.f1.tel.style.background="#CCCCCC";
document.f1.tel.disabled=true;
}
else{
document.f1.email1.style.background="#FFFFFF";
document.f1.email1.disabled=false;
document.f1.altEmail.style.background="#FFFFFF";
document.f1.altEmail.disabled=false;
document.f1.uName.style.background="#FFFFFF";
document.f1.uName.disabled=false;
document.f1.address.style.background="#FFFFFF";
document.f1.address.disabled=false;
document.f1.country.style.background="#FFFFFF";
document.f1.country.disabled=false;
document.f1.tel.style.background="#FFFFFF";
document.f1.tel.disabled=false;

}

}


	function echeck(str)
	{	
		var at="@"
		var dot="."
		var lat=str.indexOf(at)
		var lstr=str.length
		var ldot=str.indexOf(dot)
		if (str.indexOf(at)==-1){
		   alert("Invalid E-mail ID")
		   return false
		}

		if (str.indexOf(at)==-1 || str.indexOf(at)==0 || str.indexOf(at)==lstr){
		   alert("Invalid E-mail ID")
		   return false
		}

		if (str.indexOf(dot)==-1 || str.indexOf(dot)==0 || str.indexOf(dot)==lstr){
		    alert("Invalid E-mail ID")
		    return false
		}

		 if (str.indexOf(at,(lat+1))!=-1){
		    alert("Invalid E-mail ID")
		    return false
		 }

		 if (str.substring(lat-1,lat)==dot || str.substring(lat+1,lat+2)==dot){
		    alert("Invalid E-mail ID")
		    return false
		 }

		 if (str.indexOf(dot,(lat+2))==-1){
		    alert("Invalid E-mail ID")
		    return false
		 }
		
		 if (str.indexOf(" ")!=-1){
		    alert("Invalid E-mail ID")
		    return false
		 }

 		 return true			
	}
	





function emailValid(a){

	if (echeck(document.f1.email.value)==false){
	document.f1.email.value="";
	document.f1.email.focus();
		return 
	}
}

