﻿// JScript File

//function pageLoad()
//{
// Use $addHandler
//$addHandler($get("Button1"), "click", switch2preview);
//$addHandler($get("btnHandler"), "click", switch2preview);
//$addHandler($get("btnCallback"), "click", switch2preview2);
//}

function CallMe(src,dest)
 {     
     var ctrl = document.getElementById(src);
     // call server side method
     PageMethods.GetContactName(ctrl.value, CallSuccess, CallFailed, dest);
 }

 // set the destination textbox value with the ContactName
 function CallSuccess(res, destCtrl)
 {     
     var dest = document.getElementById(destCtrl);
     dest.value = res;
 }

 // alert message on some failure
 function CallFailed(res, destCtrl)
 {
     alert(res.get_message());
 }

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 switch2preview()
{
	if (echeck(document.getElementById("txtEmail").value)==false){
        document.getElementById("txtEmail").value="";
        //document.f1.email.focus();
	        return false;
        }
        
    if (! (document.getElementById("txtEmail").value == document.getElementById("txtEmail2").value)){
    alert("Email address and confirm email address are not same");
    //document.getElementById("txtEmail2").focus()
    return false;
    }

    if (document.getElementById("txtName").value == '')
    {
        alert("Please entery you name");  
        return false;      
    }
    else if (document.getElementById("txtEmail").value == '')
    {
        alert("Please enter you email address");
        return false;
    }
    else if (document.getElementById("drCustomer").value == 'Select One')
    {
        alert("Are you already our user. Please Select");
        return false;
    }
    else if (document.getElementById("drAboutus").value == 'Select an option')
    {
        if (document.getElementById("drCustomer").value != 'Yes')
        alert("Please select how did you hear about us");
        return false;
    }
    else if (document.getElementById("txtAddress").value == '')
    {
        alert("Please enter address.");
        return false;
    }
    else if (document.getElementById("drCountry").value == 'None')
    {
        alert("Please select country");
        return false;
    }
    else if (document.getElementById("drDeadline").value == 'Select Work Delivery Period')
    {
        alert("Please select deadline");
        return false;
    }
    else if (document.getElementById("drStandard").value == 'Select Level of Work')
    {
        alert("Please select Level of Work");
        return false;
    }
    else if (document.getElementById("drAcademic").value == '0')
    {
        alert("Please select Academic Level");
        return false;
    }
    else if (document.getElementById("drnop0").value == 'Select Number of Pages')
    {
        alert("Please select number of pages");
        return false;
    }
    else if (document.getElementById("txtTopic").value == '')
    {
        alert("Please enter topic");
        return false;
    }
    else if (document.getElementById("txtSubject").value == '')
    {
        alert("Please enter subject");
        return false;
    }
    else if (document.getElementById("txtInstruction").value == '')
    {
        alert("Please enter page instructions");
        return false;
    }
    else if (document.getElementById("drNumberofsources").value == 'None')
    {
        alert("Please enter number of sources");
        return false;
    } else if (document.getElementById("txtVerify").value == '') {
        alert("Please enter security code, security code required");
        return false;
    } else if (document.getElementById("txtVerify").value != document.getElementById("HDCaptchaValue").value) {
        alert("Please enter correct security code");
        return false;
    } else if (!document.getElementById("CheckBox1").checked)
    {
        alert("You have to agree with our terms and conditions");
        document.getElementById("CheckBox1").focus();
        return false;
    }    
    else
    {     

        var selIndex=document.getElementById("drAcademic").selectedIndex;
        var serviceID=document.getElementById("drAcademic").options[selIndex].text;
        
        var selIndex2=document.getElementById("drDeadline").selectedIndex;
        var deadLine=document.getElementById("drDeadline").options[selIndex2].text;
        
        var selIndex3=document.getElementById("drStandard").selectedIndex;
        var levelOfwork=document.getElementById("drStandard").options[selIndex3].text;
        
        var discountPercent = document.getElementById("hdDiscount").value;
        var TotalAmount = document.getElementById("txtTPrice").value;
         
        DiscountAmount = (TotalAmount * (discountPercent/100)).toFixed(2);
        document.getElementById("hdDiscount0").value = DiscountAmount;
        var TotalPaid = (TotalAmount - DiscountAmount).toFixed(2);
        
        document.getElementById('hdTotalPaid').value = TotalPaid;
        document.getElementById('hdprice').value = TotalAmount;
        document.getElementById('hdDealine2').value = deadLine;
        document.getElementById('hdStand').value = levelOfwork;
        
        //alert(levelOfwork + " " + deadLine + " " + " " + TotalAmount);
        
        return true;       
        
        /**
        document.getElementById('lblName').innerHTML = document.getElementById("txtName").value;
        document.getElementById('lblEmail').innerHTML = document.getElementById("txtEmail").value;
        document.getElementById('lblAemail').innerHTML = document.getElementById("txtAemail").value;
        document.getElementById('lblPhone').innerHTML = document.getElementById("txtPhone").value;
        document.getElementById('lblCustomer').innerHTML = document.getElementById("drCustomer").value;
        document.getElementById('lblGoogle').innerHTML = document.getElementById("drAboutus").value;
        document.getElementById('lblAddress').innerHTML = document.getElementById("txtAddress").value;
        document.getElementById('lblCountry').innerHTML = document.getElementById("drCountry").value;
        document.getElementById('lblTimeZOne').innerHTML = document.getElementById("drTimezone").value;
        document.getElementById('lblDeadLine').innerHTML = document.getElementById("drDeadline").value;
        
        document.getElementById('lblAcademic').innerHTML = serviceID;
        document.getElementById('lblStandard').innerHTML = document.getElementById("drStandard").value;
        document.getElementById('lblNOP').innerHTML = document.getElementById("drnop0").value;
        //lblTopic.innerHTML = document.getElementById("txtTopic").value;
        //lblSubject.innerHTML = document.getElementById("txtSubject").value;
        //lblPaper.innerHTML = document.getElementById("txtInstruction").value;
        document.getElementById('lblNumber').innerHTML = document.getElementById("drNumberofsources").value;
        //lblRef.innerHTML = document.getElementById("txtRef").value;
        document.getElementById('lblWriter').innerHTML = document.getElementById("txtWriter").value;
        document.getElementById('lblPrice').innerHTML = document.getElementById("txtTPrice").value;
        document.getElementById('lblDiscount').innerHTML = DiscountAmount;
        document.getElementById('lblTotal').innerHTML = TotalPaid;
        
        document.getElementById('Label1').innerHTML = "Order Preview";
        
        document.getElementById('orderText').style.display = 'none';
        document.getElementById('ttt').style.display = 'block';
        document.getElementById('t1').style.display = 'none';
        
        self.location = '#top';
        //document.getElementById("drAcademic").focus();**/
    }
}
 
function switch2preview2()
{
    document.getElementById('t1').style.display = 'block';
    document.getElementById('ttt').style.display = 'none';
    document.getElementById('orderText').style.display = 'block';
    document.getElementById('Label1').innerHTML = "Order Form";
    //document.getElementById("txtName").focus();
    self.location = '#top';
    //window.orderText.focus();
    
}

function GetData2()
{
    document.getElementById('drnop0').length=0;
    option0 = new Option("Select Standard","None")
    document.getElementById('drnop0').options[0] = option0;
    document.getElementById('drStandard').length=0;
    option0 = new Option("Select Standard","None")
    document.getElementById('drStandard').options[0] = option0;
    document.getElementById("txtTPrice").value = 0
}

function PP()
{
    var selIndex=document.getElementById("drAcademic").selectedIndex;
    var serviceID=document.getElementById("drAcademic").options[selIndex].value;

    if (serviceID == "PowerPoint Presentation"&&!(document.getElementById("RadioButtonList1_0").checked||document.getElementById("RadioButtonList1_1").checked))
    {
        alert ("Are you providing Presentation Material? Please select to see the rates!")
    }
}


function Deadline()
{
    var selIndex=document.getElementById("drAcademic").selectedIndex;
    var serviceID=document.getElementById("drAcademic").options[selIndex].value;
    document.getElementById("txtTPrice").value = 0.00;
    document.getElementById('drStandard').length=0;
    option0 = new Option("Select Level of Work","0")
    document.getElementById('drStandard').options[0] = option0;
    document.getElementById('drnop0').length=0;
    option0 = new Option("Select No Of Pages","0")
    document.getElementById('drnop0').options[0] = option0;
        
    //document.getElementById('drProject').length=0;
    
    switch(serviceID)
    {
        case "Essay":
            document.getElementById('drDeadline').length=0;
            option0 = new Option("Select Work Delivery Period","Select Work Delivery Period")
            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")
            
            document.getElementById('drDeadline').options[0] = option0;
            document.getElementById('drDeadline').options[1] = option1;
            document.getElementById('drDeadline').options[2] = option2;
            document.getElementById('drDeadline').options[3] = option3;
            document.getElementById('drDeadline').options[4] = option4;
            document.getElementById('drDeadline').options[5] = option5;
            document.getElementById('drDeadline').options[6] = option6;
            document.getElementById('drDeadline').options[7] = option7;
            
            document.getElementById('drStandard').length=0;
            option0 = new Option("Select Level of Work","Select Level of Work")
            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")
            option6 = new Option("Doctorate","Doctorate")
            
            document.getElementById('drStandard').options[0] = option0;
            document.getElementById('drStandard').options[1] = option1;
            document.getElementById('drStandard').options[2] = option2;
            document.getElementById('drStandard').options[3] = option3;
            document.getElementById('drStandard').options[4] = option4;
            document.getElementById('drStandard').options[5] = option5;
            document.getElementById('drStandard').options[6] = option6;  
            
            document.getElementById('drnop0').length=0;
            option0 = new Option("Select No Of Pages","0")
            document.getElementById('drnop0').options[0] = option0;
            var t = 1;
            for(var i=1;i<=300;i++)
            {  
                 //t = t+1;
                 option = new Option(i,i)
                 document.getElementById('drnop0').options[i-1] = option;
            }           
            break;
            
            case "Editing":
            case "Financial Analysis":
            document.getElementById('drDeadline').length=0;
            option0 = new Option("Select Work Delivery Period","Select Work Delivery Period")
            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")
            
            document.getElementById('drDeadline').options[0] = option0;
            document.getElementById('drDeadline').options[1] = option1;
            document.getElementById('drDeadline').options[2] = option2;
            document.getElementById('drDeadline').options[3] = option3;
            document.getElementById('drDeadline').options[4] = option4;
            document.getElementById('drDeadline').options[5] = option5;
            document.getElementById('drDeadline').options[6] = option6;
            document.getElementById('drDeadline').options[7] = option7;
            
            document.getElementById('drStandard').length=0;
            option0 = new Option("Select Level of Work","Select Level of Work")
            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")
            
            document.getElementById('drStandard').options[0] = option0;
            document.getElementById('drStandard').options[1] = option1;
            document.getElementById('drStandard').options[2] = option2;
            document.getElementById('drStandard').options[3] = option3;
            document.getElementById('drStandard').options[4] = option4;
            document.getElementById('drStandard').options[5] = option5;              
            
            document.getElementById('drnop0').length=0;
            option0 = new Option("Select No Of Pages","0")
            document.getElementById('drnop0').options[0] = option0;
            var t = 1;
            for(var i=1;i<=300;i++)
            {  
                 //t = t+1;
                 option = new Option(i,i)
                 document.getElementById('drnop0').options[i-1] = option;
            }           
            break;
            
            case "PowerPoint Presentation":
            document.getElementById('drDeadline').length=0;
            option0 = new Option("Select Work Delivery Period","Select Work Delivery Period")
            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")
            
            document.getElementById('drDeadline').options[0] = option0;
            document.getElementById('drDeadline').options[1] = option1;
            document.getElementById('drDeadline').options[2] = option2;
            document.getElementById('drDeadline').options[3] = option3;
            document.getElementById('drDeadline').options[4] = option4;
            document.getElementById('drDeadline').options[5] = option5;
            document.getElementById('drDeadline').options[6] = option6;
            document.getElementById('drDeadline').options[7] = option7;
            
            document.getElementById('drStandard').length=0;
            option0 = new Option("Select Level of Work","---")            
            
            document.getElementById('drStandard').options[0] = option0;           
            
            document.getElementById('drnop0').length=0;
            option0 = new Option("Select No Of Pages","0")
            document.getElementById('drnop0').options[0] = option0;
            var t = 1;
            for(var i=1;i<=300;i++)
            {  
                 //t = t+1;
                 option = new Option(i,i)
                 document.getElementById('drnop0').options[i-1] = option;
            }           
            break;
            
            case "Corporate Research":
            document.getElementById('drDeadline').length=0;
            option0 = new Option("Select Work Delivery Period","Select Work Delivery Period")
            option1 = new Option("14 Days","14 Days")
            option2 = new Option("6-7 Days","6-7 Days")
                        
            document.getElementById('drDeadline').options[0] = option0;
            document.getElementById('drDeadline').options[1] = option1;
            document.getElementById('drDeadline').options[2] = option2;
            
            document.getElementById('drStandard').length=0;
            option0 = new Option("Select Level of Work","---")
                        
            document.getElementById('drStandard').options[0] = option0;
                        
            document.getElementById('drnop0').length=0;
            option0 = new Option("Select No Of Pages","0")
            document.getElementById('drnop0').options[0] = option0;
            var t = 1;
            for(var i=1;i<=300;i++)
            {  
                 //t = t+1;
                 option = new Option(i,i)
                 document.getElementById('drnop0').options[i-1] = option;
            }           
            break;
            
            case "Dissertation":
            document.getElementById('drDeadline').length=0;
            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")
                        
            document.getElementById('drDeadline').options[0] = option0;
            document.getElementById('drDeadline').options[1] = option1;
            document.getElementById('drDeadline').options[2] = option2;
            document.getElementById('drDeadline').options[3] = option3;
            document.getElementById('drDeadline').options[4] = option4;
            document.getElementById('drDeadline').options[5] = option5;
            
            document.getElementById('drStandard').length=0;
            option0 = new Option("Select Level of Work","Select Level of Work")
            option1 = new Option("Undergraduate","Undergraduate")
            option2 = new Option("Masters","Masters")
            option3 = new Option("Doctorate","Doctorate")
                        
            document.getElementById('drStandard').options[0] = option0;
            document.getElementById('drStandard').options[1] = option1;
            document.getElementById('drStandard').options[2] = option2;
            document.getElementById('drStandard').options[3] = option3;
                        
            document.getElementById('drnop0').length=0;
            option0 = new Option("Select No Of Pages","0")
            document.getElementById('drnop0').options[0] = option0;
            var t = 1;
            for(var i=1;i<=300;i++)
            {  
                 //t = t+1;
                 option = new Option(i,i)
                 document.getElementById('drnop0').options[i-1] = option;
            }           
            break;
    }
  }
  
  function Deadline2()
{
    var selIndex=document.getElementById("drStandard").selectedIndex;
    var standard=document.getElementById("drStandard").options[selIndex].value;
    
    var selIndex1=document.getElementById("drAcademic").selectedIndex;
    var serviceID=document.getElementById("drAcademic").options[selIndex1].value;    
        
    //document.getElementById('drProject').length=0;
    
    
    if ((serviceID == "Essay") && (standard == "Doctorate"))
    {
            document.getElementById('drDeadline').length=0;
            option0 = new Option("Select Work Delivery Period","Select Work Delivery Period")
            option1 = new Option("1 Month","1 Month")
            option2 = new Option("14 Days","14 Days")
            option3 = new Option("6-7 Days","6-7 Days")
            option4 = new Option("5 Days","5 Days")
            option5 = new Option("4 Days","4 Days")
            option6 = new Option("3 Days","3 Days")
            option7 = new Option("48 Hours","48 Hours")
            option8 = new Option("24 Hours","24 Hours")
            
            document.getElementById('drDeadline').options[0] = option0;
            document.getElementById('drDeadline').options[1] = option1;
            document.getElementById('drDeadline').options[2] = option2;
            document.getElementById('drDeadline').options[3] = option3;
            document.getElementById('drDeadline').options[4] = option4;
            document.getElementById('drDeadline').options[5] = option5;
            document.getElementById('drDeadline').options[6] = option6;
            document.getElementById('drDeadline').options[7] = option7;
            document.getElementById('drDeadline').options[8] = option8;              
                 
            
    }
    else if ((serviceID == "Dissertation") && (standard == "Doctorate"))
    {
            document.getElementById('drDeadline').length=0;
            option0 = new Option("Select Work Delivery Period","0")
            option1 = new Option("1 Month","1 Month")
            option2 = new Option("15 Days","15 Days")
            option3 = new Option("7 Days","7 Days")
            option4 = new Option("4 Days","4 Days")
                        
            document.getElementById('drDeadline').options[0] = option0;
            document.getElementById('drDeadline').options[1] = option1;
            document.getElementById('drDeadline').options[2] = option2;
            document.getElementById('drDeadline').options[3] = option3;
            document.getElementById('drDeadline').options[4] = option4;
    } 
            
  }
 
 function Price()
 {
    var selIndex=document.getElementById("drAcademic").selectedIndex;
    var serviceID=document.getElementById("drAcademic").options[selIndex].value;
    var selIndex2=document.getElementById("drDeadline").selectedIndex;
    var deadline=document.getElementById("drDeadline").options[selIndex2].value;
    var selIndex3=document.getElementById("drnop0").selectedIndex;
    var nop=document.getElementById("drnop0").options[selIndex3].value;
    var selIndex4=document.getElementById("drStandard").selectedIndex;
    var standard=document.getElementById("drStandard").options[selIndex4].value;
    
    document.getElementById("hdnop").value = nop;
    document.getElementById("hdstandard").value = standard;
    var serIDDeadline = serviceID + ' ' + deadline + ' ' + standard;
    
    //high school rate
    if (serviceID == "Essay"&&standard == "High School"&&deadline == "14 Days")
    {
    document.getElementById("txtTPrice").value = (nop * 9.95).toFixed(2)
    }
    if (serviceID == "Essay"&&standard == "High School"&&deadline == "6-7 Days")
    {
    document.getElementById("txtTPrice").value = (nop * 11.95).toFixed(2)
    }
    if (serviceID == "Essay"&&standard == "High School"&&deadline == "5 Days")
    {
    document.getElementById("txtTPrice").value = (nop * 13.95).toFixed(2)
    }
    if (serviceID == "Essay"&&standard == "High School"&&deadline == "4 Days")
    {
    document.getElementById("txtTPrice").value = (nop * 15.95).toFixed(2)
    }
    if (serviceID == "Essay"&&standard == "High School"&&deadline == "3 Days")
    {
    document.getElementById("txtTPrice").value = (nop * 17.95).toFixed(2)
    }
    if (serviceID == "Essay"&&standard == "High School"&&deadline == "48 Hours")
    {
    document.getElementById("txtTPrice").value = (nop * 19.95).toFixed(2)
    }
    if (serviceID == "Essay"&&standard == "High School"&&deadline == "24 Hours")
    {
    document.getElementById("txtTPrice").value = (nop * 21.95).toFixed(2)
    }

    //college rate
    if (serviceID == "Essay"&&standard == "College"&&deadline == "14 Days")
    {
    document.getElementById("txtTPrice").value = (nop * 11.95).toFixed(2)
    }
    if (serviceID == "Essay"&&standard == "College"&&deadline == "6-7 Days")
    {
    document.getElementById("txtTPrice").value = (nop * 13.95).toFixed(2)
    }
    if (serviceID == "Essay"&&standard == "College"&&deadline == "5 Days")
    {
    document.getElementById("txtTPrice").value = (nop * 15.95).toFixed(2)
    }
    if (serviceID == "Essay"&&standard == "College"&&deadline == "4 Days")
    {
    document.getElementById("txtTPrice").value = (nop * 17.95).toFixed(2)
    }
    if (serviceID == "Essay"&&standard == "College"&&deadline == "3 Days")
    {
    document.getElementById("txtTPrice").value = (nop * 19.95).toFixed(2)
    }
    if (serviceID == "Essay"&&standard == "College"&&deadline == "48 Hours")
    {
    document.getElementById("txtTPrice").value = (nop * 21.95).toFixed(2)
    }
    if (serviceID == "Essay"&&standard == "College"&&deadline == "24 Hours")
    {
    document.getElementById("txtTPrice").value = (nop * 23.95).toFixed(2)
    }

    //Bachelor 
    if (serviceID == "Essay"&&standard == "Bachelor"&&deadline == "14 Days")
    {
    document.getElementById("txtTPrice").value = (nop * 13.95).toFixed(2)
    }
    if (serviceID == "Essay"&&standard == "Bachelor"&&deadline == "6-7 Days")
    {
    document.getElementById("txtTPrice").value = (nop * 15.95).toFixed(2)
    }
    if (serviceID == "Essay"&&standard == "Bachelor"&&deadline == "5 Days")
    {
    document.getElementById("txtTPrice").value = (nop * 17.95).toFixed(2)
    }
    if (serviceID == "Essay"&&standard == "Bachelor"&&deadline == "4 Days")
    {
    document.getElementById("txtTPrice").value = (nop * 19.95).toFixed(2)
    }
    if (serviceID == "Essay"&&standard == "Bachelor"&&deadline == "3 Days")
    {
    document.getElementById("txtTPrice").value = (nop * 21.95).toFixed(2)
    }
    if (serviceID == "Essay"&&standard == "Bachelor"&&deadline == "48 Hours")
    {
    document.getElementById("txtTPrice").value = (nop * 23.95).toFixed(2)
    }
    if (serviceID == "Essay"&&standard == "Bachelor"&&deadline == "24 Hours")
    {
    document.getElementById("txtTPrice").value = (nop * 25.95).toFixed(2)
    }

    //Graduate 
    if (serviceID == "Essay"&&standard == "Graduate"&&deadline == "14 Days")
    {
    document.getElementById("txtTPrice").value = (nop * 15.95).toFixed(2)
    }
    if (serviceID == "Essay"&&standard == "Graduate"&&deadline == "6-7 Days")
    {
    document.getElementById("txtTPrice").value = (nop * 17.95).toFixed(2)
    }
    if (serviceID == "Essay"&&standard == "Graduate"&&deadline == "5 Days")
    {
    document.getElementById("txtTPrice").value = (nop * 19.95).toFixed(2)
    }
    if (serviceID == "Essay"&&standard == "Graduate"&&deadline == "4 Days")
    {
    document.getElementById("txtTPrice").value = (nop * 21.95).toFixed(2)
    }
    if (serviceID == "Essay"&&standard == "Graduate"&&deadline == "3 Days")
    {
    document.getElementById("txtTPrice").value = (nop * 23.95).toFixed(2)
    }
    if (serviceID == "Essay"&&standard == "Graduate"&&deadline == "48 Hours")
    {
    document.getElementById("txtTPrice").value = (nop * 25.95).toFixed(2)
    }
    if (serviceID == "Essay"&&standard == "Graduate"&&deadline == "24 Hours")
    {
    document.getElementById("txtTPrice").value = (nop * 27.95).toFixed(2)
    }

    //Masters 
    if (serviceID == "Essay"&&standard == "Masters"&&deadline == "14 Days")
    {
    document.getElementById("txtTPrice").value = (nop * 17.95).toFixed(2)
    }
    if (serviceID == "Essay"&&standard == "Masters"&&deadline == "6-7 Days")
    {
    document.getElementById("txtTPrice").value = (nop * 19.95).toFixed(2)
    }
    if (serviceID == "Essay"&&standard == "Masters"&&deadline == "5 Days")
    {
    document.getElementById("txtTPrice").value = (nop * 21.95).toFixed(2)
    }
    if (serviceID == "Essay"&&standard == "Masters"&&deadline == "4 Days")
    {
    document.getElementById("txtTPrice").value = (nop * 23.95).toFixed(2)
    }
    if (serviceID == "Essay"&&standard == "Masters"&&deadline == "3 Days")
    {
    document.getElementById("txtTPrice").value = (nop * 25.95).toFixed(2)
    }
    if (serviceID == "Essay"&&standard == "Masters"&&deadline == "48 Hours")
    {
    document.getElementById("txtTPrice").value = (nop * 27.95).toFixed(2)
    }
    if (serviceID == "Essay"&&standard == "Masters"&&deadline == "24 Hours")
    {
    document.getElementById("txtTPrice").value = (nop * 29.95).toFixed(2)
    }
    
    //Doctorate
    if (serviceID == "Essay"&&standard == "Doctorate"&&deadline == "1 Month")
    {
    document.getElementById("txtTPrice").value = (nop * 21.95).toFixed(2)    
    } 
    else if (serviceID == "Essay"&&standard == "Doctorate"&&deadline == "14 Days")
    {
    document.getElementById("txtTPrice").value = (nop * 23.95).toFixed(2)
    
    }
    else if (serviceID == "Essay"&&standard == "Doctorate"&&deadline == "6-7 Days")
    {
    document.getElementById("txtTPrice").value = (nop * 27.95).toFixed(2)
    
    }
    else if (serviceID == "Essay"&&standard == "Doctorate"&&deadline == "5 Days")
    {
    document.getElementById("txtTPrice").value = (nop * 29.95).toFixed(2);    
    }
    else if (serviceID == "Essay"&&standard == "Doctorate"&&deadline == "4 Days")
    {
    document.getElementById("txtTPrice").value = (nop * 31.95).toFixed(2)
    
    }
    else if (serviceID == "Essay"&&standard == "Doctorate"&&deadline == "3 Days")
    {
    document.getElementById("txtTPrice").value = (nop * 33.95).toFixed(2)
    
    }
    else if (serviceID == "Essay"&&standard == "Doctorate"&&deadline == "48 Hours")
    {
    document.getElementById("txtTPrice").value = (nop * 35.95).toFixed(2)
    
    }
    else if (serviceID == "Essay"&&standard == "Doctorate"&&deadline == "24 Hours")
    {
    document.getElementById("txtTPrice").value = (nop * 37.95).toFixed(2)
    
    }

    //Dissertation --> Undergraduate 
    if (serviceID == "Dissertation"&&standard == "Undergraduate"&&deadline == "45 Days")
    {
    document.getElementById("txtTPrice").value = (nop * 11.95).toFixed(2)
    }
    if (serviceID == "Dissertation"&&standard == "Undergraduate"&&deadline == "30 Days")
    {
    document.getElementById("txtTPrice").value = (nop * 12.95).toFixed(2)
    }
    if (serviceID == "Dissertation"&&standard == "Undergraduate"&&deadline == "15 Days")
    {
    document.getElementById("txtTPrice").value = (nop * 13.95).toFixed(2)
    }
    if (serviceID == "Dissertation"&&standard == "Undergraduate"&&deadline == "7 Days")
    {
    document.getElementById("txtTPrice").value = (nop * 15.95).toFixed(2)
    }
    if (serviceID == "Dissertation"&&standard == "Undergraduate"&&deadline == "4 Days")
    {
    document.getElementById("txtTPrice").value = (nop * 17.95).toFixed(2)
    }

    //Dissertation --> Masters 
    if (serviceID == "Dissertation"&&standard == "Masters"&&deadline == "45 Days")
    {
    document.getElementById("txtTPrice").value = (nop * 14.95).toFixed(2)
    }
    if (serviceID == "Dissertation"&&standard == "Masters"&&deadline == "30 Days")
    {
    document.getElementById("txtTPrice").value = (nop * 15.95).toFixed(2)
    }
    if (serviceID == "Dissertation"&&standard == "Masters"&&deadline == "15 Days")
    {
    document.getElementById("txtTPrice").value = (nop * 16.95).toFixed(2)
    }
    if (serviceID == "Dissertation"&&standard == "Masters"&&deadline == "7 Days")
    {
    document.getElementById("txtTPrice").value = (nop * 18.95).toFixed(2)
    }
    if (serviceID == "Dissertation"&&standard == "Masters"&&deadline == "4 Days")
    {
    document.getElementById("txtTPrice").value = (nop * 20.95).toFixed(2)
    }
    
    
    //Dissertation --> Doctorate     
    if (serviceID == "Dissertation"&&standard == "Doctorate"&&deadline == "1 Month")
    {
    document.getElementById("txtTPrice").value = (nop * 20.95).toFixed(2)
    }
    if (serviceID == "Dissertation"&&standard == "Doctorate"&&deadline == "15 Days")
    {
    document.getElementById("txtTPrice").value = (nop * 22.95).toFixed(2)
    }
    if (serviceID == "Dissertation"&&standard == "Doctorate"&&deadline == "7 Days")
    {
    document.getElementById("txtTPrice").value = (nop * 26.95).toFixed(2)
    }
    if (serviceID == "Dissertation"&&standard == "Doctorate"&&deadline == "5 Days")
    {
    document.getElementById("txtTPrice").value = (nop * 28.95).toFixed(2)
    }
    if (serviceID == "Dissertation"&&standard == "Doctorate"&&deadline == "4 Days")
    {
    document.getElementById("txtTPrice").value = (nop * 30.95).toFixed(2)
    }


    //Editing
    if (serviceID == "Editing"&&deadline == "14 Days")
    {
    document.getElementById("txtTPrice").value = (nop * 4.95).toFixed(2)
    }
    if (serviceID == "Editing"&&deadline == "6-7 Days")
    {
    document.getElementById("txtTPrice").value = (nop * 5.95).toFixed(2)
    }
    if (serviceID == "Editing"&&deadline == "5 Days")
    {
    document.getElementById("txtTPrice").value = (nop * 7.95).toFixed(2)
    }
    if (serviceID == "Editing"&&deadline == "4 Days")
    {
    document.getElementById("txtTPrice").value = (nop * 9.50).toFixed(2)
    }
    if (serviceID == "Editing"&&deadline == "3 Days")
    {
    document.getElementById("txtTPrice").value = (nop * 10.95).toFixed(2)
    }
    if (serviceID == "Editing"&&deadline == "48 Hours")
    {
    document.getElementById("txtTPrice").value = (nop * 12.50).toFixed(2)
    }
    if (serviceID == "Editing"&&deadline == "24 Hours")
    {
    document.getElementById("txtTPrice").value = (nop * 13.95).toFixed(2)
    }


    //Financial analysis
    //high school
    if (serviceID == "Financial Analysis"&&standard == "High School"&&deadline == "14 Days")
    {
    document.getElementById("txtTPrice").value = (nop * 9.95).toFixed(2)
    }
    if (serviceID == "Financial Analysis"&&standard == "High School"&&deadline == "6-7 Days")
    {
    document.getElementById("txtTPrice").value = (nop * 11.95).toFixed(2)
    }
    if (serviceID == "Financial Analysis"&&standard == "High School"&&deadline == "5 Days")
    {
    document.getElementById("txtTPrice").value = (nop * 13.95).toFixed(2)
    }
    if (serviceID == "Financial Analysis"&&standard == "High School"&&deadline == "4 Days")
    {
    document.getElementById("txtTPrice").value = (nop * 15.95).toFixed(2)
    }
    if (serviceID == "Financial Analysis"&&standard == "High School"&&deadline == "3 Days")
    {
    document.getElementById("txtTPrice").value = (nop * 17.95).toFixed(2)
    }
    if (serviceID == "Financial Analysis"&&standard == "High School"&&deadline == "48 Hours")
    {

    document.getElementById("txtTPrice").value = (nop * 19.95).toFixed(2)
    }
    if (serviceID == "Financial Analysis"&&standard == "High School"&&deadline == "24 Hours")
    {
    document.getElementById("txtTPrice").value = (nop * 21.95).toFixed(2)
    }

    //college rate
    if (serviceID == "Financial Analysis"&&standard == "College"&&deadline == "14 Days")
    {
    document.getElementById("txtTPrice").value = (nop * 11.95).toFixed(2)
    }
    if (serviceID == "Financial Analysis"&&standard == "College"&&deadline == "6-7 Days")
    {
    document.getElementById("txtTPrice").value = (nop * 13.95).toFixed(2)
    }
    if (serviceID == "Financial Analysis"&&standard == "College"&&deadline == "5 Days")
    {
    document.getElementById("txtTPrice").value = (nop * 15.95).toFixed(2)
    }
    if (serviceID == "Financial Analysis"&&standard == "College"&&deadline == "4 Days")
    {
    document.getElementById("txtTPrice").value = (nop * 17.95).toFixed(2)
    }
    if (serviceID == "Financial Analysis"&&standard == "College"&&deadline == "3 Days")
    {
    document.getElementById("txtTPrice").value = (nop * 19.95).toFixed(2)
    }
    if (serviceID == "Financial Analysis"&&standard == "College"&&deadline == "48 Hours")
    {
    document.getElementById("txtTPrice").value = (nop * 21.95).toFixed(2)
    }
    if (serviceID == "Financial Analysis"&&standard == "College"&&deadline == "24 Hours")
    {
    document.getElementById("txtTPrice").value = (nop * 23.95).toFixed(2)
    }

    //Bachelor 
    if (serviceID == "Financial Analysis"&&standard == "Bachelor"&&deadline == "14 Days")
    {
    document.getElementById("txtTPrice").value = (nop * 13.95).toFixed(2)
    }
    if (serviceID == "Financial Analysis"&&standard == "Bachelor"&&deadline == "6-7 Days")
    {
    document.getElementById("txtTPrice").value = (nop * 15.95).toFixed(2)
    }
    if (serviceID == "Financial Analysis"&&standard == "Bachelor"&&deadline == "5 Days")
    {
    document.getElementById("txtTPrice").value = (nop * 17.95).toFixed(2)
    }
    if (serviceID == "Financial Analysis"&&standard == "Bachelor"&&deadline == "4 Days")
    {
    document.getElementById("txtTPrice").value = (nop * 19.95).toFixed(2)
    }
    if (serviceID == "Financial Analysis"&&standard == "Bachelor"&&deadline == "3 Days")
    {
    document.getElementById("txtTPrice").value = (nop * 21.95).toFixed(2)
    }
    if (serviceID == "Financial Analysis"&&standard == "Bachelor"&&deadline == "48 Hours")
    {
    document.getElementById("txtTPrice").value = (nop * 23.95).toFixed(2)
    }
    if (serviceID == "Financial Analysis"&&standard == "Bachelor"&&deadline == "24 Hours")
    {
    document.getElementById("txtTPrice").value = (nop * 25.95).toFixed(2)
    }

    //Graduate 
    if (serviceID == "Financial Analysis"&&standard == "Graduate"&&deadline == "14 Days")
    {
    document.getElementById("txtTPrice").value = (nop * 15.95).toFixed(2)
    }
    if (serviceID == "Financial Analysis"&&standard == "Graduate"&&deadline == "6-7 Days")
    {
    document.getElementById("txtTPrice").value = (nop * 17.95).toFixed(2)
    }
    if (serviceID == "Financial Analysis"&&standard == "Graduate"&&deadline == "5 Days")
    {
    document.getElementById("txtTPrice").value = (nop * 19.95).toFixed(2)
    }
    if (serviceID == "Financial Analysis"&&standard == "Graduate"&&deadline == "4 Days")
    {
    document.getElementById("txtTPrice").value = (nop * 21.95).toFixed(2)
    }
    if (serviceID == "Financial Analysis"&&standard == "Graduate"&&deadline == "3 Days")
    {
    document.getElementById("txtTPrice").value = (nop * 23.95).toFixed(2)
    }
    if (serviceID == "Financial Analysis"&&standard == "Graduate"&&deadline == "48 Hours")
    {
    document.getElementById("txtTPrice").value = (nop * 25.95).toFixed(2)
    }
    if (serviceID == "Financial Analysis"&&standard == "Graduate"&&deadline == "24 Hours")
    {
    document.getElementById("txtTPrice").value = (nop * 27.95).toFixed(2)
    }

    //Masters 
    if (serviceID == "Financial Analysis"&&standard == "Masters"&&deadline == "14 Days")
    {
    document.getElementById("txtTPrice").value = (nop * 17.95).toFixed(2)
    }
    if (serviceID == "Financial Analysis"&&standard == "Masters"&&deadline == "6-7 Days")
    {
    document.getElementById("txtTPrice").value = (nop * 19.95).toFixed(2)
    }
    if (serviceID == "Financial Analysis"&&standard == "Masters"&&deadline == "5 Days")
    {
    document.getElementById("txtTPrice").value = (nop * 21.95).toFixed(2)
    }
    if (serviceID == "Financial Analysis"&&standard == "Masters"&&deadline == "4 Days")
    {
    document.getElementById("txtTPrice").value = (nop * 23.95).toFixed(2)
    }
    if (serviceID == "Financial Analysis"&&standard == "Masters"&&deadline == "3 Days")
    {
    document.getElementById("txtTPrice").value = (nop * 25.95).toFixed(2)
    }
    if (serviceID == "Financial Analysis"&&standard == "Masters"&&deadline == "48 Hours")
    {
    document.getElementById("txtTPrice").value = (nop * 27.95).toFixed(2)
    }
    if (serviceID == "Financial Analysis"&&standard == "Masters"&&deadline == "24 Hours")
    {
    document.getElementById("txtTPrice").value = (nop * 29.95).toFixed(2)
    }

    //PowerPoint -> rMaterial = "yes"
    if (serviceID == "PowerPoint Presentation"&&deadline == "14 Days"&&(document.getElementById("RadioButtonList1_0").checked)&&document.getElementById("RadioButtonList1_0").value == "yes")
    {
    document.getElementById("txtTPrice").value = (nop * 5.95).toFixed(2)
    }
    if (serviceID == "PowerPoint Presentation"&&deadline == "6-7 Days"&&(document.getElementById("RadioButtonList1_0").checked)&&document.getElementById("RadioButtonList1_0").value == "yes")
    {
    document.getElementById("txtTPrice").value = (nop * 7.95).toFixed(2)
    }
    if (serviceID == "PowerPoint Presentation"&&deadline == "5 Days"&&(document.getElementById("RadioButtonList1_0").checked)&&document.getElementById("RadioButtonList1_0").value == "yes")
    {
    document.getElementById("txtTPrice").value = (nop * 9.95).toFixed(2)
    }
    if (serviceID == "PowerPoint Presentation"&&deadline == "4 Days"&&(document.getElementById("RadioButtonList1_0").checked)&&document.getElementById("RadioButtonList1_0").value == "yes")
    {
    document.getElementById("txtTPrice").value = (nop * 11.95).toFixed(2)
    }
    if (serviceID == "PowerPoint Presentation"&&deadline == "3 Days"&&(document.getElementById("RadioButtonList1_0").checked)&&document.getElementById("RadioButtonList1_0").value == "yes")
    {
    document.getElementById("txtTPrice").value = (nop * 13.95).toFixed(2)
    }
    if (serviceID == "PowerPoint Presentation"&&deadline == "48 Hours"&&(document.getElementById("RadioButtonList1_0").checked)&&document.getElementById("RadioButtonList1_0").value == "yes")
    {
    document.getElementById("txtTPrice").value = (nop * 15.95).toFixed(2)
    }
    if (serviceID == "PowerPoint Presentation"&&deadline == "24 Hours"&&(document.getElementById("RadioButtonList1_0").checked)&&document.getElementById("RadioButtonList1_0").value == "yes")
    {
    document.getElementById("txtTPrice").value = (nop * 17.95).toFixed(2)
    }


    //PowerPoint -> rMaterial = "no"
    if (serviceID == "PowerPoint Presentation"&&deadline == "14 Days"&&(document.getElementById("RadioButtonList1_1").checked)&&document.getElementById("RadioButtonList1_1").value == "no")
    {
    document.getElementById("txtTPrice").value = (nop * 12.95).toFixed(2)
    }
    if (serviceID == "PowerPoint Presentation"&&deadline == "6-7 Days"&&(document.getElementById("RadioButtonList1_1").checked)&&document.getElementById("RadioButtonList1_1").value == "no")
    {
    document.getElementById("txtTPrice").value = (nop * 14.95).toFixed(2)
    }
    if (serviceID == "PowerPoint Presentation"&&deadline == "5 Days"&&(document.getElementById("RadioButtonList1_1").checked)&&document.getElementById("RadioButtonList1_1").value == "no")
    {
    document.getElementById("txtTPrice").value = (nop * 16.95).toFixed(2)
    }
    if (serviceID == "PowerPoint Presentation"&&deadline == "4 Days"&&(document.getElementById("RadioButtonList1_1").checked)&&document.getElementById("RadioButtonList1_1").value == "no")
    {
    document.getElementById("txtTPrice").value = (nop * 18.95).toFixed(2)
    }
    if (serviceID == "PowerPoint Presentation"&&deadline == "3 Days"&&(document.getElementById("RadioButtonList1_1").checked)&&document.getElementById("RadioButtonList1_1").value == "no")
    {
    document.getElementById("txtTPrice").value = (nop * 20.95).toFixed(2)
    }
    if (serviceID == "PowerPoint Presentation"&&deadline == "48 Hours"&&(document.getElementById("RadioButtonList1_1").checked)&&document.getElementById("RadioButtonList1_1").value == "no")
    {
    document.getElementById("txtTPrice").value = (nop * 22.95).toFixed(2)
    }
    if (serviceID == "PowerPoint Presentation"&&deadline == "24 Hours"&&(document.getElementById("RadioButtonList1_1").checked)&&document.getElementById("RadioButtonList1_1").value == "no")
    {
    document.getElementById("txtTPrice").value = (nop * 24.95).toFixed(2)
    }

    //Corporate Research
    if (serviceID == "Corporate Research"&&deadline == "14 Days")
    {
    document.getElementById("txtTPrice").value = (nop * 50.00).toFixed(2)
    }
    if (serviceID == "Corporate Research"&&deadline == "6-7 Days")
    {
    document.getElementById("txtTPrice").value = (nop * 75.00).toFixed(2)
    }

 
 }
 

  
/**  
function Prices()
{
    var selIndex=document.getElementById("drServices").selectedIndex;
    //var empName=document.getElementById("DropDownList2").options(selIndex).value;
    var serviceID=document.getElementById("drServices").options[selIndex].value;
    
    var selIndex1=document.getElementById("drProject").selectedIndex;
    var deadLine=document.getElementById("drProject").options[selIndex1].value;
    var packID=document.getElementById("drProject").options[selIndex1].value;
    
    document.getElementById('hdDeadline').value=deadLine;
    document.getElementById('drnop0').length=0;
    document.getElementById('txtPrice').value = 0.00;
    document.getElementById('txtDiscount').value = 0.00;
    document.getElementById('txtNetPrice').value = 0.00;
    document.getElementById('txtWPP').value = '0'; 
    
    
    switch(serviceID)
    {
        case "1":
        case "2":
            if (packID == "2")
            {
                document.getElementById('hdPrice').value = 39.00;
                document.getElementById("hdDilveryHour").value = "2";   
                option0 = new Option("Select No Of Pages","0")
                document.getElementById('drnop0').options[0] = option0;
                for(var i=1;i<=50;i++)
                {  
                    option = new Option(i,i)
                    document.getElementById('drnop0').options[i] = option;
                }
            }
            break;
       case "3":
       case "4":
       case "5":
       case "6":
       case "8":
            if (packID == "1")
            {
                document.getElementById('hdPrice').value = 0.05;
                document.getElementById("hdDilveryHour").value = "1";   
                option0 = new Option("Select No Of Pages","0")
                document.getElementById('drnop0').options[0] = option0;
                for(var i=1;i<=20;i++)
                {  
                    option = new Option(i,i)
                    document.getElementById('drnop0').options[i] = option;
                }
            }
            else if (packID == "2")
            {
                document.getElementById('hdPrice').value = 0.04;
                document.getElementById("hdDilveryHour").value = "2";   
                option0 = new Option("Select No Of Pages","0")
                document.getElementById('drnop0').options[0] = option0;
                for(var i=1;i<=50;i++)
                {  
                    option = new Option(i,i)
                    document.getElementById('drnop0').options[i] = option;
                }
            }
            break;
       
       case "7":
            if (packID == "1")
            {
                document.getElementById('hdPrice').value = 0.02;
                   
                option0 = new Option("Select No Of Pages","0")
                document.getElementById('drnop0').options[0] = option0;
                for(var i=1;i<=20;i++)
                {  
                    option = new Option(i,i)
                    document.getElementById('drnop0').options[i] = option;
                }
            }
            else if (packID == "2")
            {
                document.getElementById('hdPrice').value = 0.01;
                   
                option0 = new Option("Select No Of Pages","0")
                document.getElementById('drnop0').options[0] = option0;
                for(var i=1;i<=50;i++)
                {  
                    option = new Option(i,i)
                    document.getElementById('drnop0').options[i] = option;
                }
            }
            break;
       
       case "9":
            if (packID == "1")
            {
                document.getElementById('hdPrice').value = 0.04;
                   
                option0 = new Option("Select No Of Pages","0")
                document.getElementById('drnop0').options[0] = option0;
                for(var i=1;i<=20;i++)
                {  
                    option = new Option(i,i)
                    document.getElementById('drnop0').options[i] = option;
                }
            }
            else if (packID == "2")
            {
                document.getElementById('hdPrice').value = 0.03;
                   
                option0 = new Option("Select No Of Pages","0")
                document.getElementById('drnop0').options[0] = option0;
                for(var i=1;i<=50;i++)
                {  
                    option = new Option(i,i)
                    document.getElementById('drnop0').options[i] = option;
                }
            }
            break;                 
        }
     
}

function calPrice()
{
    var selIndex1=document.getElementById("drnop0").selectedIndex;
    //var empName=document.getElementById("DropDownList2").options(selIndex).value;
    var NOP=document.getElementById("drnop0").options[selIndex1].value;
    var price = document.getElementById("hdPrice").value;
    var pagePerWord = document.getElementById("txtWPP").value;
    var row = document.getElementById('wordprPage');
    var discount = 0.00;
    var calPrice = 0.00;
    
    if ((NOP != 0) && (row.style.display == 'none'))
    {
        if(NOP <= 9)
        {                    
            totalPrice = (NOP * price).toFixed(2);
            document.getElementById("txtPrice").value = totalPrice;
            document.getElementById("txtDiscount").value = discount;
            document.getElementById("txtNetPrice").value = totalPrice;
            
            document.getElementById("hdcurrentPrice").value = totalPrice;
            document.getElementById("hdDiscount").value = discount;
            document.getElementById("hdTotalPrice").value = totalPrice;
            document.getElementById("hdNOP").value = NOP;           
            
            
        }
        else if (NOP > 9)
        {
            calPrice = (NOP * price).toFixed(2);
            discount = (calPrice * (10/100)).toFixed(2);
            totalPrice = (calPrice - discount).toFixed(2);
            document.getElementById("txtPrice").value = calPrice;
            document.getElementById("txtDiscount").value = discount;
            document.getElementById("txtNetPrice").value = totalPrice;
            
            document.getElementById("hdcurrentPrice").value = calPrice;
            document.getElementById("hdDiscount").value = discount;
            document.getElementById("hdTotalPrice").value = totalPrice;
            document.getElementById("hdNOP").value = NOP;
        }
    }
    else if ((NOP != 0) && (row.style.display == 'block'))
    {
        if(NOP <= 9)
        {                    
            totalPrice = ((pagePerWord * price) * NOP).toFixed(2);
            document.getElementById("txtPrice").value = totalPrice;
            document.getElementById("txtDiscount").value = discount;
            document.getElementById("txtNetPrice").value = totalPrice;
            
            document.getElementById("hdcurrentPrice").value = totalPrice;
            document.getElementById("hdDiscount").value = discount;
            document.getElementById("hdTotalPrice").value = totalPrice;
            document.getElementById("hdNOP").value = NOP;
            
        }
        else if (NOP > 9)
        {
            calPrice = ((pagePerWord * price) * NOP).toFixed(2);
            discount = (calPrice * (10/100)).toFixed(2);
            totalPrice = (calPrice - discount).toFixed(2);
            document.getElementById("txtPrice").value = calPrice;
            document.getElementById("txtDiscount").value = discount;
            document.getElementById("txtNetPrice").value = totalPrice;
            
            document.getElementById("hdcurrentPrice").value = calPrice;
            document.getElementById("hdDiscount").value = discount;
            document.getElementById("hdTotalPrice").value = totalPrice;
            document.getElementById("hdNOP").value = NOP;
            document.getElementById("hdcurrentPrice").value = calPrice;
        }
        
    }
    
    
}

function switch2preview()
{
            litFname.innerHTML = document.getElementById("txtFirstName").value;
            litLastName.innerHTML = document.getElementById("txtLastName").value;
            litEmail.innerHTML = document.getElementById("txtEmail").value;
            litPhone.innerHTML = document.getElementById("txtPhone").value;
            litAddress.innerHTML = document.getElementById("txtBAddress").value;
            litURL.innerHTML = document.getElementById("txtURL").value;
            //litCountry.innerHTML = drCountry.SelectedItem.value;
            litCallTime.innerHTML = document.getElementById("txtCallTime").value;
            //litTimezone.innerHTML = drTimezone.SelectedItem.value;
            //litService.innerHTML = drServices.SelectedItem.value;
            litDeadline.innerHTML = document.getElementById("hdDeadline").value;
            litTimeDelivery.innerHTML = '';
            litWP.value = document.getElementById("txtWPP").value;
            litNOPG.innerHTML = document.getElementById("hdNOP").value;
            //litLanStyle.innerHTML = drLanguage.SelectedItem.value;
            litTopic.innerHTML = document.getElementById("txtTopic").value;
            litPrice.innerHTML = document.getElementById("hdcurrentPrice").value;
            litDiscount.innerHTML = document.getElementById("hdDiscount").value;
            litTprice.innerHTML = document.getElementById("hdTotalPrice").value;
            //litTprice.value = hdPrice.Value;
            tblPreview.Visible = true;
            tblOrder.Visible = false;


    tblOrder.style.display = 'none';
    tblPreview.style.display = 'block';
}

function switch2preview2()
{
    tblOrder.style.display = 'block';
    tblPreview.style.display = 'none';
}

**/
