﻿// 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 switch2preview()
{
    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("drAcademic").value == '0')
    {
        alert("Please select Academic Level");
        return false;
    }
    else if (document.getElementById("drDeadline").value == 'Select Deadline')
    {
        alert("Please select deadline");
        return false;
    }
    else if (document.getElementById("drStandard").value == 'None')
    {
        alert("Please select standard");
        return false;
    }
    
    else if (document.getElementById("drnop").value == '0')
    {
        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("txtRef").value == '')
    {
        alert("Please enter Refrencing required");
        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 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 = document.getElementById("drDeadline").value;
        return true;      
    }
}
 
function switch2preview2()
{
    document.getElementById('t1').style.display = 'block';
    document.getElementById('t2').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('drnop').length=0;
    option0 = new Option("Select Standard","None")
    document.getElementById('drnop').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 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 Standard","None")
    document.getElementById('drStandard').options[0] = option0;
    document.getElementById('drnop').length=0;
    option0 = new Option("Select No Of Pages","0")
    document.getElementById('drnop').options[0] = option0;
        
    //document.getElementById('drProject').length=0;
    
    switch(serviceID)
    {
       case "1":
       case "4":
       case "6":
       case "10":
       case "14":
            document.getElementById('drDeadline').length=0;
            option0 = new Option("Select Deadline","Select Deadline")
            option1 = new Option("1 Month","1 Month")
            option2 = new Option("15 Days","15 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;
            //document.getElementById('drDeadline').options[9] = option9;
            break;
	   case "2":
       case "3":
       case "5":
       case "7":
       case "8":
	   case "11":
	   case "15":
            document.getElementById('drDeadline').length=0;
            option0 = new Option("Select Deadline","Select Deadline")
            option1 = new Option("3 Weeks","3 Weeks")
            option2 = new Option("2 Weeks","2 Weeks")
            option3 = new Option("1 Week","1 Week")
            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;
			break;
       case "12":
       case "13":
            document.getElementById('drDeadline').length=0;
            option0 = new Option("Select Deadline","Select Deadline")
            option1 = new Option("1 Week","1 Week")
            option2 = new Option("72 Hours","72 Hours")
            option3 = new Option("48 Hours","48 Hours")
            option4 = 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;
       break;
    }
  }


function GetData()
{
    var selIndex=document.getElementById("drAcademic").selectedIndex;
    var serviceID=document.getElementById("drAcademic").options[selIndex].value;
    document.getElementById("txtTPrice").value = 0.00;    
    //document.getElementById('drProject').length=0;
    
    switch(serviceID)
    {
        case "1":
        case "6":
            option0 = new Option("Select Standard","None")
            option1 = new Option("Guaranteed “A” Grade","Guaranteed “A” Grade")
            option2 = new Option("Guaranteed “B” Grade","Guaranteed “B” Grade")
            document.getElementById('drStandard').options[2] = option2;
            document.getElementById('drStandard').options[0] = option0;
            document.getElementById('drStandard').options[1] = option1;
            document.getElementById('drnop').length=0;
            option0 = new Option("Select No Of Pages","0")
            document.getElementById('drnop').options[0] = option0;
            for(var i=1;i<=300;i++)
            {  
                 option = new Option(i,i)
                 document.getElementById('drnop').options[i] = option;
            }
            break;
       case "2":
       case "3":
       case "4":
       case "5":
       case "7":
       case "8":
       case "9":
       case "10":
       case "11":
       
            var selIndex2=document.getElementById("drDeadline").selectedIndex;
            var deadline=document.getElementById("drDeadline").options[selIndex2].value;
            option0 = new Option("Select Standard","None")
            option1 = new Option("Guaranteed First Class","Guaranteed First Class")
            option2 = new Option("Guaranteed 2:1 Standard","Guaranteed 2:1 Standard")
            option3 = new Option("Guaranteed 2:2 Standard","Guaranteed 2:2 Standard")
            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('drnop').length=0;
            option0 = new Option("Select No Of Pages","0")
            document.getElementById('drnop').options[0] = option0;
            
            if (deadline == '24 Hours')
            {
                option0 = new Option("Select No Of Pages","0")
                document.getElementById('drnop').options[0] = option0;
                var t = 0;
                for(var i=1;i<=8;i++)
                {  
                     t = t+1;
                     option = new Option(i,i)
                     document.getElementById('drnop').options[t] = option;
                }
            }
            else if (deadline == '48 Hours')
            {
                document.getElementById('drnop').length=0;
                option0 = new Option("Select No Of Pages","0")
                document.getElementById('drnop').options[0] = option0;
                for(var i=1;i<=19;i++)
                {  
                     option = new Option(i,i)
                     document.getElementById('drnop').options[i] = option;
                }
            }
            else if (deadline == '72 Hours')
            {
                document.getElementById('drnop').length=0;
                option0 = new Option("Select No Of Pages","0")
                document.getElementById('drnop').options[0] = option0;
                for(var i=1;i<=300;i++)
                {  
                     option = new Option(i,i)
                     document.getElementById('drnop').options[i] = option;
                }
            }
            else if (deadline == '1 Week')
            {
                document.getElementById('drnop').length=0;
                option0 = new Option("Select No Of Pages","0")
                document.getElementById('drnop').options[0] = option0;
                for(var i=1;i<=300;i++)
                {  
                     option = new Option(i,i)
                     document.getElementById('drnop').options[i] = option;
                }
            }
            else if (deadline != 'Select Deadline')
            {
                document.getElementById('drnop').length=0;
                option0 = new Option("Select No Of Pages","0")
                document.getElementById('drnop').options[0] = option0;
                for(var i=1;i<=300;i++)
                {  
                     option = new Option(i,i)
                     document.getElementById('drnop').options[i] = option;
                }
            }
            
            break; 
            
            case "12":
            case "13":
            case "14":
            case "15":
                var selIndex2=document.getElementById("drDeadline").selectedIndex;
                var deadline=document.getElementById("drDeadline").options[selIndex2].value;
                option0 = new Option("Select Standard","None")
                option1 = new Option("Guaranteed First Class","Guaranteed First Class")
                option2 = new Option("Guaranteed 2:1 Standard","Guaranteed 2:1 Standard")
                option3 = new Option("Guaranteed 2:2 Standard","Guaranteed 2:2 Standard")
                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('drnop').length=0;
                option0 = new Option("Select No Of Pages","0")
                document.getElementById('drnop').options[0] = option0;
                
                //if (deadline == '24 Hours')
               // {
                    option0 = new Option("Select No Of Pages","0")
                    document.getElementById('drnop').options[0] = option0;
                    var t = 0;
                    for(var i=1;i<=300;i++)
                    {  
                         t = t+1;
                         option = new Option(i,i)
                         document.getElementById('drnop').options[t] = option;
                    }
                //}
           break;
                   
    }
 }
 
 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("drnop").selectedIndex;
    var nop=document.getElementById("drnop").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;
    
    switch(serIDDeadline)
    {
        case "1 1 Month":
            if (standard == 'Guaranteed “A” Grade')
            {
                document.getElementById("txtTPrice").value = (nop * 13.95).toFixed(2);
            }
            else if (standard == 'Guaranteed “B” Grade')
            {
                document.getElementById("txtTPrice").value = (nop * 9.95).toFixed(2);
            }
        break;
        case "1 15 Days":
            if (standard == 'Guaranteed “A” Grade')
            {
                document.getElementById("txtTPrice").value = (nop * 15.95).toFixed(2);
            }
            else if (standard == 'Guaranteed “B” Grade')
            {
                document.getElementById("txtTPrice").value = (nop * 11.95).toFixed(2);
            }
        break;
        case "1 6-7 Days":
            if (standard == 'Guaranteed “A” Grade')
            {
                document.getElementById("txtTPrice").value = (nop * 17.95).toFixed(2);
            }
            else if (standard == 'Guaranteed “B” Grade')
            {
                document.getElementById("txtTPrice").value = (nop * 13.95).toFixed(2);
            }
        break;
        case "1 5 Days":
            if (standard == 'Guaranteed “A” Grade')
            {
                document.getElementById("txtTPrice").value = (nop * 19.95).toFixed(2);
            }
            else if (standard == 'Guaranteed “B” Grade')
            {
                document.getElementById("txtTPrice").value = (nop * 15.95).toFixed(2);
            }
        break;
        case "1 4 Days":
            if (standard == 'Guaranteed “A” Grade')
            {
                document.getElementById("txtTPrice").value = (nop * 21.95).toFixed(2);
            }
            else if (standard == 'Guaranteed “B” Grade')
            {
                document.getElementById("txtTPrice").value = (nop * 17.95).toFixed(2);
            }
        break;
        case "1 3 Days":
            if (standard == 'Guaranteed “A” Grade')
            {
                document.getElementById("txtTPrice").value = (nop * 23.95).toFixed(2);
            }
            else if (standard == 'Guaranteed “B” Grade')
            {
                document.getElementById("txtTPrice").value = (nop * 19.95).toFixed(2);
            }
        break;
        case "1 48 Hours":
            if (standard == 'Guaranteed “A” Grade')
            {
                document.getElementById("txtTPrice").value = (nop * 25.95).toFixed(2);
            }
            else if (standard == 'Guaranteed “B” Grade')
            {
                document.getElementById("txtTPrice").value = (nop * 21.95).toFixed(2);
            }
        break;
        case "1 24 Hours":
            if (standard == 'Guaranteed “A” Grade')
            {
                document.getElementById("txtTPrice").value = (nop * 27.95).toFixed(2);
            }
            else if (standard == 'Guaranteed “B” Grade')
            {
                document.getElementById("txtTPrice").value = (nop * 23.95).toFixed(2);
            }
        break;
        //----------------------------------------------------------------------------------------------------------
        case "6 1 Month":
            if (standard == 'Guaranteed “A” Grade')
            {
                document.getElementById("txtTPrice").value = (nop * 13.95).toFixed(2);
            }
            else if (standard == 'Guaranteed “B” Grade')
            {
                document.getElementById("txtTPrice").value = (nop * 9.95).toFixed(2);
            }
        break;
        case "6 15 Days":
            if (standard == 'Guaranteed “A” Grade')
            {
                document.getElementById("txtTPrice").value = (nop * 15.95).toFixed(2);
            }
            else if (standard == 'Guaranteed “B” Grade')
            {
                document.getElementById("txtTPrice").value = (nop * 11.95).toFixed(2);
            }
        break;
        case "6 6-7 Days":
            if (standard == 'Guaranteed “A” Grade')
            {
                document.getElementById("txtTPrice").value = (nop * 17.95).toFixed(2);
            }
            else if (standard == 'Guaranteed “B” Grade')
            {
                document.getElementById("txtTPrice").value = (nop * 13.95).toFixed(2);
            }
        break;
        case "6 5 Days":
            if (standard == 'Guaranteed “A” Grade')
            {
                document.getElementById("txtTPrice").value = (nop * 19.95).toFixed(2);
            }
            else if (standard == 'Guaranteed “B” Grade')
            {
                document.getElementById("txtTPrice").value = (nop * 15.95).toFixed(2);
            }
        break;
        case "6 4 Days":
            if (standard == 'Guaranteed “A” Grade')
            {
                document.getElementById("txtTPrice").value = (nop * 21.95).toFixed(2);
            }
            else if (standard == 'Guaranteed “B” Grade')
            {
                document.getElementById("txtTPrice").value = (nop * 17.95).toFixed(2);
            }
        break;
        case "6 3 Days":
            if (standard == 'Guaranteed “A” Grade')
            {
                document.getElementById("txtTPrice").value = (nop * 23.95).toFixed(2);
            }
            else if (standard == 'Guaranteed “B” Grade')
            {
                document.getElementById("txtTPrice").value = (nop * 19.95).toFixed(2);
            }
        break;
        case "6 48 Hours":
            if (standard == 'Guaranteed “A” Grade')
            {
                document.getElementById("txtTPrice").value = (nop * 25.95).toFixed(2);
            }
            else if (standard == 'Guaranteed “B” Grade')
            {
                document.getElementById("txtTPrice").value = (nop * 21.95).toFixed(2);
            }
        break;
        case "6 24 Hours":
            if (standard == 'Guaranteed “A” Grade')
            {
                document.getElementById("txtTPrice").value = (nop * 27.95).toFixed(2);
            }
            else if (standard == 'Guaranteed “B” Grade')
            {
                document.getElementById("txtTPrice").value = (nop * 23.95).toFixed(2);
            }
        break;
        //----------------------------------------------------------------------------------------------------------
        case "2 3 Weeks":
        case "3 3 Weeks":
        case "5 3 Weeks":
            if (standard == 'Guaranteed First Class')
            {
                document.getElementById("txtTPrice").value = (nop * 16.95).toFixed(2);
            }
            else if (standard == 'Guaranteed 2:1 Standard')
            {
                document.getElementById("txtTPrice").value = (nop * 13.95).toFixed(2);
            }
            else if (standard == 'Guaranteed 2:2 Standard')
            {
                document.getElementById("txtTPrice").value = (nop * 11.95).toFixed(2);
            }
        break;
        case "2 2 Weeks":
        case "3 2 Weeks":
        case "5 2 Weeks":
            if (standard == 'Guaranteed First Class')
            {
                document.getElementById("txtTPrice").value = (nop * 18.95).toFixed(2);
            }
            else if (standard == 'Guaranteed 2:1 Standard')
            {
                document.getElementById("txtTPrice").value = (nop * 15.95).toFixed(2);
            }
            else if (standard == 'Guaranteed 2:2 Standard')
            {
                document.getElementById("txtTPrice").value = (nop * 13.95).toFixed(2);
            }
        break;
        case "2 1 Week":
        case "3 1 Week":
        case "5 1 Week":
            if (standard == 'Guaranteed First Class')
            {
                document.getElementById("txtTPrice").value = (nop * 20.95).toFixed(2);
            }
            else if (standard == 'Guaranteed 2:1 Standard')
            {
                document.getElementById("txtTPrice").value = (nop * 17.95).toFixed(2);
            }
            else if (standard == 'Guaranteed 2:2 Standard')
            {
                document.getElementById("txtTPrice").value = (nop * 15.95).toFixed(2);
            }
        break;
        case "2 5 Days":
        case "3 5 Days":
        case "5 5 Days":
            if (standard == 'Guaranteed First Class')
            {
                document.getElementById("txtTPrice").value = (nop * 22.95).toFixed(2);
            }
            else if (standard == 'Guaranteed 2:1 Standard')
            {
                document.getElementById("txtTPrice").value = (nop * 19.95).toFixed(2);
            }
            else if (standard == 'Guaranteed 2:2 Standard')
            {
                document.getElementById("txtTPrice").value = (nop * 17.95).toFixed(2);
            }
        break;
        case "2 4 Days":
        case "3 4 Days":
        case "5 4 Days":
            if (standard == 'Guaranteed First Class')
            {
                document.getElementById("txtTPrice").value = (nop * 24.95).toFixed(2);
            }
            else if (standard == 'Guaranteed 2:1 Standard')
            {
                document.getElementById("txtTPrice").value = (nop * 21.95).toFixed(2);
            }
            else if (standard == 'Guaranteed 2:2 Standard')
            {
                document.getElementById("txtTPrice").value = (nop * 19.95).toFixed(2);
            }
        break;
        case "2 3 Days":
        case "3 3 Days":
        case "5 3 Days":
            if (standard == 'Guaranteed First Class')
            {
                document.getElementById("txtTPrice").value = (nop * 26.95).toFixed(2);
            }
            else if (standard == 'Guaranteed 2:1 Standard')
            {
                document.getElementById("txtTPrice").value = (nop * 23.95).toFixed(2);
            }
            else if (standard == 'Guaranteed 2:2 Standard')
            {
                document.getElementById("txtTPrice").value = (nop * 21.95).toFixed(2);
            }
        break;
        case "2 48 Hours":
        case "3 48 Hours":
        case "5 48 Hours":
            if (standard == 'Guaranteed First Class')
            {
                document.getElementById("txtTPrice").value = (nop * 28.95).toFixed(2);
            }
            else if (standard == 'Guaranteed 2:1 Standard')
            {
                document.getElementById("txtTPrice").value = (nop * 25.95).toFixed(2);
            }
            else if (standard == 'Guaranteed 2:2 Standard')
            {
                document.getElementById("txtTPrice").value = (nop * 23.95).toFixed(2);
            }
        break;
        case "2 24 Hours":
        case "3 24 Hours":
        case "5 24 Hours":
            if (standard == 'Guaranteed First Class')
            {
                document.getElementById("txtTPrice").value = (nop * 30.95).toFixed(2);
            }
            else if (standard == 'Guaranteed 2:1 Standard')
            {
                document.getElementById("txtTPrice").value = (nop * 27.95).toFixed(2);
            }
            else if (standard == 'Guaranteed 2:2 Standard')
            {
                document.getElementById("txtTPrice").value = (nop * 25.95).toFixed(2);
            }
        break;
        //-----------------------------------------------------------------------------------------------------------
        case "4 1 Month":
            if (standard == 'Guaranteed First Class')
            {
                document.getElementById("txtTPrice").value = (nop * 14.95).toFixed(2);
            }
            else if (standard == 'Guaranteed 2:1 Standard')
            {
                document.getElementById("txtTPrice").value = (nop * 11.95).toFixed(2);
            }
            else if (standard == 'Guaranteed 2:2 Standard')
            {
                document.getElementById("txtTPrice").value = (nop * 9.95).toFixed(2);
            }
        break;
        case "4 15 Days":
            if (standard == 'Guaranteed First Class')
            {
                document.getElementById("txtTPrice").value = (nop * 16.95).toFixed(2);
            }
            else if (standard == 'Guaranteed 2:1 Standard')
            {
                document.getElementById("txtTPrice").value = (nop * 13.95).toFixed(2);
            }
            else if (standard == 'Guaranteed 2:2 Standard')
            {
                document.getElementById("txtTPrice").value = (nop * 11.95).toFixed(2);
            }
        break;
        case "4 6-7 Days":
            if (standard == 'Guaranteed First Class')
            {
                document.getElementById("txtTPrice").value = (nop * 18.95).toFixed(2);
            }
            else if (standard == 'Guaranteed 2:1 Standard')
            {
                document.getElementById("txtTPrice").value = (nop * 15.95).toFixed(2);
            }
            else if (standard == 'Guaranteed 2:2 Standard')
            {
                document.getElementById("txtTPrice").value = (nop * 13.95).toFixed(2);
            }
        break;
        case "4 5 Days":
            if (standard == 'Guaranteed First Class')
            {
                document.getElementById("txtTPrice").value = (nop * 20.95).toFixed(2);
            }
            else if (standard == 'Guaranteed 2:1 Standard')
            {
                document.getElementById("txtTPrice").value = (nop * 17.95).toFixed(2);
            }
            else if (standard == 'Guaranteed 2:2 Standard')
            {
                document.getElementById("txtTPrice").value = (nop * 15.95).toFixed(2);
            }
        break;
        case "4 4 Days":
            if (standard == 'Guaranteed First Class')
            {
                document.getElementById("txtTPrice").value = (nop * 22.95).toFixed(2);
            }
            else if (standard == 'Guaranteed 2:1 Standard')
            {
                document.getElementById("txtTPrice").value = (nop * 19.95).toFixed(2);
            }
            else if (standard == 'Guaranteed 2:2 Standard')
            {
                document.getElementById("txtTPrice").value = (nop * 17.95).toFixed(2);
            }
        break;
        case "4 3 Days":
            if (standard == 'Guaranteed First Class')
            {
                document.getElementById("txtTPrice").value = (nop * 24.95).toFixed(2);
            }
            else if (standard == 'Guaranteed 2:1 Standard')
            {
                document.getElementById("txtTPrice").value = (nop * 21.95).toFixed(2);
            }
            else if (standard == 'Guaranteed 2:2 Standard')
            {
                document.getElementById("txtTPrice").value = (nop * 19.95).toFixed(2);
            }
        break;
        case "4 48 Hours":
            if (standard == 'Guaranteed First Class')
            {
                document.getElementById("txtTPrice").value = (nop * 26.95).toFixed(2);
            }
            else if (standard == 'Guaranteed 2:1 Standard')
            {
                document.getElementById("txtTPrice").value = (nop * 23.95).toFixed(2);
            }
            else if (standard == 'Guaranteed 2:2 Standard')
            {
                document.getElementById("txtTPrice").value = (nop * 21.95).toFixed(2);
            }
        break;
        case "4 24 Hours":
            if (standard == 'Guaranteed First Class')
            {
                document.getElementById("txtTPrice").value = (nop * 28.95).toFixed(2);
            }
            else if (standard == 'Guaranteed 2:1 Standard')
            {
                document.getElementById("txtTPrice").value = (nop * 25.95).toFixed(2);
            }
            else if (standard == 'Guaranteed 2:2 Standard')
            {
                document.getElementById("txtTPrice").value = (nop * 23.95).toFixed(2);
            }
        break;
        //-----------------------------------------------------------------------------------------------------------
        case "7 3 Weeks":
        case "11 3 Weeks":
        case "9 3 Weeks":
		case "8 3 Weeks":
		
            if (standard == 'Guaranteed First Class')
            {
                document.getElementById("txtTPrice").value = (nop * 17.95).toFixed(2);
            }
            else if (standard == 'Guaranteed 2:1 Standard')
            {
                document.getElementById("txtTPrice").value = (nop * 14.95).toFixed(2);
            }
            else if (standard == 'Guaranteed 2:2 Standard')
            {
                document.getElementById("txtTPrice").value = (nop * 12.95).toFixed(2);
            }
        break;
        case "7 2 Weeks":
        case "11 2 Weeks":
        case "9 2 Weeks":
		case "8 2 Weeks":
            if (standard == 'Guaranteed First Class')
            {
                document.getElementById("txtTPrice").value = (nop * 19.95).toFixed(2);
            }
            else if (standard == 'Guaranteed 2:1 Standard')
            {
                document.getElementById("txtTPrice").value = (nop * 16.95).toFixed(2);
            }
            else if (standard == 'Guaranteed 2:2 Standard')
            {
                document.getElementById("txtTPrice").value = (nop * 14.95).toFixed(2);
            }
        break;
        case "7 1 Week":
        case "11 1 Week":
        case "9 1 Week":
		case "8 1 Week":
            if (standard == 'Guaranteed First Class')
            {
                document.getElementById("txtTPrice").value = (nop * 21.95).toFixed(2);
            }
            else if (standard == 'Guaranteed 2:1 Standard')
            {
                document.getElementById("txtTPrice").value = (nop * 18.95).toFixed(2);
            }
            else if (standard == 'Guaranteed 2:2 Standard')
            {
                document.getElementById("txtTPrice").value = (nop * 16.95).toFixed(2);
            }
        break;
        case "7 5 Days":
        case "11 5 Days":
        case "9 5 Days":
		case "8 5 Days":
            if (standard == 'Guaranteed First Class')
            {
                document.getElementById("txtTPrice").value = (nop * 23.95).toFixed(2);
            }
            else if (standard == 'Guaranteed 2:1 Standard')
            {
                document.getElementById("txtTPrice").value = (nop * 20.95).toFixed(2);
            }
            else if (standard == 'Guaranteed 2:2 Standard')
            {
                document.getElementById("txtTPrice").value = (nop * 18.95).toFixed(2);
            }
        break;
        case "7 4 Days":
        case "11 4 Days":
        case "9 4 Days":
		case "8 4 Days":
            if (standard == 'Guaranteed First Class')
            {
                document.getElementById("txtTPrice").value = (nop * 25.95).toFixed(2);
            }
            else if (standard == 'Guaranteed 2:1 Standard')
            {
                document.getElementById("txtTPrice").value = (nop * 22.95).toFixed(2);
            }
            else if (standard == 'Guaranteed 2:2 Standard')
            {
                document.getElementById("txtTPrice").value = (nop * 20.95).toFixed(2);
            }
        break;
        case "7 3 Days":
        case "11 3 Days":
        case "9 3 Days":
		case "8 3 Days":
            if (standard == 'Guaranteed First Class')
            {
                document.getElementById("txtTPrice").value = (nop * 27.95).toFixed(2);
            }
            else if (standard == 'Guaranteed 2:1 Standard')
            {
                document.getElementById("txtTPrice").value = (nop * 24.95).toFixed(2);
            }
            else if (standard == 'Guaranteed 2:2 Standard')
            {
                document.getElementById("txtTPrice").value = (nop * 22.95).toFixed(2);
            }
        break;       
        case "7 48 Hours":
        case "11 48 Hours":
        case "9 48 Hours":
		case "8 48 Hours":
            if (standard == 'Guaranteed First Class')
            {
                document.getElementById("txtTPrice").value = (nop * 29.95).toFixed(2);
            }
            else if (standard == 'Guaranteed 2:1 Standard')
            {
                document.getElementById("txtTPrice").value = (nop * 26.95).toFixed(2);
            }
            else if (standard == 'Guaranteed 2:2 Standard')
            {
                document.getElementById("txtTPrice").value = (nop * 24.95).toFixed(2);
            }
        break;
        case "7 24 Hours":
        case "11 24 Hours":
        case "9 24 Hours":
		case "8 24 Hours":
            if (standard == 'Guaranteed First Class')
            {
                document.getElementById("txtTPrice").value = (nop * 31.95).toFixed(2);
            }
            else if (standard == 'Guaranteed 2:1 Standard')
            {
                document.getElementById("txtTPrice").value = (nop * 28.95).toFixed(2);
            }
            else if (standard == 'Guaranteed 2:2 Standard')
            {
                document.getElementById("txtTPrice").value = (nop * 26.95).toFixed(2);
            }
        break;
        //-----------------------------------------------------------------------------------------------------------
		/**
        case "8 3 Weeks":
            if (standard == 'Guaranteed First Class')
            {
                document.getElementById("txtTPrice").value = (nop * 39.95).toFixed(2);
            }
            else if (standard == 'Guaranteed 2:1 Standard')
            {
                document.getElementById("txtTPrice").value = (nop * 14.95).toFixed(2);
            }
            else if (standard == 'Guaranteed 2:2 Standard')
            {
                document.getElementById("txtTPrice").value = (nop * 12.95).toFixed(2);
            }
        break;
        case "8 15 Days":
            if (standard == 'Guaranteed First Class')
            {
                document.getElementById("txtTPrice").value = (nop * 42.95).toFixed(2);
            }
            else if (standard == 'Guaranteed 2:1 Standard')
            {
                document.getElementById("txtTPrice").value = (nop * 15.95).toFixed(2);
            }
            else if (standard == 'Guaranteed 2:2 Standard')
            {
                document.getElementById("txtTPrice").value = (nop * 13.95).toFixed(2);
            }
        break;
        case "8 6-7 Days":
            if (standard == 'Guaranteed First Class')
            {
                document.getElementById("txtTPrice").value = (nop * 44.95).toFixed(2);
            }
            else if (standard == 'Guaranteed 2:1 Standard')
            {
                document.getElementById("txtTPrice").value = (nop * 16.95).toFixed(2);
            }
            else if (standard == 'Guaranteed 2:2 Standard')
            {
                document.getElementById("txtTPrice").value = (nop * 14.95).toFixed(2);
            }
        break;
        case "8 5 Days":
            if (standard == 'Guaranteed First Class')
            {
                document.getElementById("txtTPrice").value = (nop * 49.95).toFixed(2);
            }
            else if (standard == 'Guaranteed 2:1 Standard')
            {
                document.getElementById("txtTPrice").value = (nop * 18.95).toFixed(2);
            }
            else if (standard == 'Guaranteed 2:2 Standard')
            {
                document.getElementById("txtTPrice").value = (nop * 15.95).toFixed(2);
            }
        break;
        case "8 4 Days":
            if (standard == 'Guaranteed First Class')
            {
                document.getElementById("txtTPrice").value = (nop * 59.95).toFixed(2);
            }
            else if (standard == 'Guaranteed 2:1 Standard')
            {
                document.getElementById("txtTPrice").value = (nop * 24.95).toFixed(2);
            }
            else if (standard == 'Guaranteed 2:2 Standard')
            {
                document.getElementById("txtTPrice").value = (nop * 19.95).toFixed(2);
            }
        break;
        case "8 3 Days":
            if (standard == 'Guaranteed First Class')
            {
                document.getElementById("txtTPrice").value = (nop * 72.95).toFixed(2);
            }
            else if (standard == 'Guaranteed 2:1 Standard')
            {
                document.getElementById("txtTPrice").value = (nop * 31.95).toFixed(2);
            }
            else if (standard == 'Guaranteed 2:2 Standard')
            {
                document.getElementById("txtTPrice").value = (nop * 22.95).toFixed(2);
            }
        break;       
        case "8 48 Hours":
            if (standard == 'Guaranteed First Class')
            {
                document.getElementById("txtTPrice").value = (nop * 92.95).toFixed(2);
            }
            else if (standard == 'Guaranteed 2:1 Standard')
            {
                document.getElementById("txtTPrice").value = (nop * 39.95).toFixed(2);
            }
            else if (standard == 'Guaranteed 2:2 Standard')
            {
                document.getElementById("txtTPrice").value = (nop * 29.95).toFixed(2);
            }
        break;
        case "8 24 Hours":
            if (standard == 'Guaranteed First Class')
            {
                document.getElementById("txtTPrice").value = (nop * 122.95).toFixed(2);
            }
            else if (standard == 'Guaranteed 2:1 Standard')
            {
                document.getElementById("txtTPrice").value = (nop * 49.95).toFixed(2);
            }
            else if (standard == 'Guaranteed 2:2 Standard')
            {
                document.getElementById("txtTPrice").value = (nop * 39.95).toFixed(2);
            }
        break;*/
        //-----------------------------------------------------------------------------------------------------------
        case "10 1 Month":
            if (standard == 'Guaranteed First Class')
            {
                document.getElementById("txtTPrice").value = (nop * 16.95).toFixed(2);
            }
            else if (standard == 'Guaranteed 2:1 Standard')
            {
                document.getElementById("txtTPrice").value = (nop * 13.95).toFixed(2);
            }
            else if (standard == 'Guaranteed 2:2 Standard')
            {
                document.getElementById("txtTPrice").value = (nop * 11.95).toFixed(2);
            }
        break;
        case "10 15 Days":
            if (standard == 'Guaranteed First Class')
            {
                document.getElementById("txtTPrice").value = (nop * 18.95).toFixed(2);
            }
            else if (standard == 'Guaranteed 2:1 Standard')
            {
                document.getElementById("txtTPrice").value = (nop * 15.95).toFixed(2);
            }
            else if (standard == 'Guaranteed 2:2 Standard')
            {
                document.getElementById("txtTPrice").value = (nop * 13.95).toFixed(2);
            }
        break;
        case "10 6-7 Days":
            if (standard == 'Guaranteed First Class')
            {
                document.getElementById("txtTPrice").value = (nop * 20.95).toFixed(2);
            }
            else if (standard == 'Guaranteed 2:1 Standard')
            {
                document.getElementById("txtTPrice").value = (nop * 17.95).toFixed(2);
            }
            else if (standard == 'Guaranteed 2:2 Standard')
            {
                document.getElementById("txtTPrice").value = (nop * 15.95).toFixed(2);
            }
        break;
        case "10 5 Days":
            if (standard == 'Guaranteed First Class')
            {
                document.getElementById("txtTPrice").value = (nop * 22.95).toFixed(2);
            }
            else if (standard == 'Guaranteed 2:1 Standard')
            {
                document.getElementById("txtTPrice").value = (nop * 19.95).toFixed(2);
            }
            else if (standard == 'Guaranteed 2:2 Standard')
            {
                document.getElementById("txtTPrice").value = (nop * 17.95).toFixed(2);
            }
        break;
        case "10 4 Days":
            if (standard == 'Guaranteed First Class')
            {
                document.getElementById("txtTPrice").value = (nop * 24.95).toFixed(2);
            }
            else if (standard == 'Guaranteed 2:1 Standard')
            {
                document.getElementById("txtTPrice").value = (nop * 21.95).toFixed(2);
            }
            else if (standard == 'Guaranteed 2:2 Standard')
            {
                document.getElementById("txtTPrice").value = (nop * 19.95).toFixed(2);
            }
        break;
        case "10 3 Days":
            if (standard == 'Guaranteed First Class')
            {
                document.getElementById("txtTPrice").value = (nop * 26.95).toFixed(2);
            }
            else if (standard == 'Guaranteed 2:1 Standard')
            {
                document.getElementById("txtTPrice").value = (nop * 23.95).toFixed(2);
            }
            else if (standard == 'Guaranteed 2:2 Standard')
            {
                document.getElementById("txtTPrice").value = (nop * 21.95).toFixed(2);
            }
        break;       
        case "10 48 Hours":
            if (standard == 'Guaranteed First Class')
            {
                document.getElementById("txtTPrice").value = (nop * 28.95).toFixed(2);
            }
            else if (standard == 'Guaranteed 2:1 Standard')
            {
                document.getElementById("txtTPrice").value = (nop * 25.95).toFixed(2);
            }
            else if (standard == 'Guaranteed 2:2 Standard')
            {
                document.getElementById("txtTPrice").value = (nop * 23.95).toFixed(2);
            }
        break;
        case "10 24 Hours":
            if (standard == 'Guaranteed First Class')
            {
                document.getElementById("txtTPrice").value = (nop * 30.95).toFixed(2);
            }
            else if (standard == 'Guaranteed 2:1 Standard')
            {
                document.getElementById("txtTPrice").value = (nop * 27.95).toFixed(2);
            }
            else if (standard == 'Guaranteed 2:2 Standard')
            {
                document.getElementById("txtTPrice").value = (nop * 25.95).toFixed(2);
            }
        break;
        //---------------------------------------------------------------------------------------------------------
        
        case "12 1 Week":
            if (standard == 'Guaranteed First Class')
            {
                document.getElementById("txtTPrice").value = (nop * 5.5).toFixed(2);
            }
            else if (standard == 'Guaranteed 2:1 Standard')
            {
                document.getElementById("txtTPrice").value = (nop * 3.5).toFixed(2);
            }
            else if (standard == 'Guaranteed 2:2 Standard')
            {
                document.getElementById("txtTPrice").value = (nop * 2.5).toFixed(2);
            }
        break;
        case "12 72 Hours":
            if (standard == 'Guaranteed First Class')
            {
                document.getElementById("txtTPrice").value = (nop * 5.92).toFixed(2);
            }
            else if (standard == 'Guaranteed 2:1 Standard')
            {
                document.getElementById("txtTPrice").value = (nop * 3.92).toFixed(2);
            }
            else if (standard == 'Guaranteed 2:2 Standard')
            {
                document.getElementById("txtTPrice").value = (nop * 2.92).toFixed(2);
            }
        break;
        case "12 48 Hours":
            if (standard == 'Guaranteed First Class')
            {
                document.getElementById("txtTPrice").value = (nop * 6.29).toFixed(2);
            }
            else if (standard == 'Guaranteed 2:1 Standard')
            {
                document.getElementById("txtTPrice").value = (nop * 4.29).toFixed(2);
            }
            else if (standard == 'Guaranteed 2:2 Standard')
            {
                document.getElementById("txtTPrice").value = (nop * 3.29).toFixed(2);
            }
        break;
        case "12 24 Hours":
            if (standard == 'Guaranteed First Class')
            {
                document.getElementById("txtTPrice").value = (nop * 6.92).toFixed(2);
            }
            else if (standard == 'Guaranteed 2:1 Standard')
            {
                document.getElementById("txtTPrice").value = (nop * 4.92).toFixed(2);
            }
            else if (standard == 'Guaranteed 2:2 Standard')
            {
                document.getElementById("txtTPrice").value = (nop * 3.92).toFixed(2);
            }
        break;
        
        //-------------------------------------------------------------------------------------------------------
        
        case "13 1 Week":
            if (standard == 'Guaranteed First Class')
            {
                document.getElementById("txtTPrice").value = (nop * 7.5).toFixed(2);
            }
            else if (standard == 'Guaranteed 2:1 Standard')
            {
                document.getElementById("txtTPrice").value = (nop * 5.5).toFixed(2);
            }
            else if (standard == 'Guaranteed 2:2 Standard')
            {
                document.getElementById("txtTPrice").value = (nop * 3.92).toFixed(2);
            }
        break;
        case "13 72 Hours":
            if (standard == 'Guaranteed First Class')
            {
                document.getElementById("txtTPrice").value = (nop * 8.29).toFixed(2);
            }
            else if (standard == 'Guaranteed 2:1 Standard')
            {
                document.getElementById("txtTPrice").value = (nop * 6.29).toFixed(2);
            }
            else if (standard == 'Guaranteed 2:2 Standard')
            {
                document.getElementById("txtTPrice").value = (nop * 4.29).toFixed(2);
            }
        break;
        case "13 48 Hours":
            if (standard == 'Guaranteed First Class')
            {
                document.getElementById("txtTPrice").value = (nop * 8.69).toFixed(2);
            }
            else if (standard == 'Guaranteed 2:1 Standard')
            {
                document.getElementById("txtTPrice").value = (nop * 6.69).toFixed(2);
            }
            else if (standard == 'Guaranteed 2:2 Standard')
            {
                document.getElementById("txtTPrice").value = (nop * 4.69).toFixed(2);
            }
        break;
        case "13 24 Hours":
            if (standard == 'Guaranteed First Class')
            {
                document.getElementById("txtTPrice").value = (nop * 8.92).toFixed(2);
            }
            else if (standard == 'Guaranteed 2:1 Standard')
            {
                document.getElementById("txtTPrice").value = (nop * 6.92).toFixed(2);
            }
            else if (standard == 'Guaranteed 2:2 Standard')
            {
                document.getElementById("txtTPrice").value = (nop * 5.29).toFixed(2);
            }
            break;
        //-----------------------------------------------------------------------------------------------------------  
        case "14 1 Month":
            if (standard == 'Guaranteed First Class') {
                document.getElementById("txtTPrice").value = (nop * 18.95).toFixed(2);
            }
            else if (standard == 'Guaranteed 2:1 Standard') {
                document.getElementById("txtTPrice").value = (nop * 15.95).toFixed(2);
            }
            else if (standard == 'Guaranteed 2:2 Standard') {
                document.getElementById("txtTPrice").value = (nop * 13.95).toFixed(2);
            }
            break;
        case "14 15 Days":
            if (standard == 'Guaranteed First Class') {
                document.getElementById("txtTPrice").value = (nop * 20.95).toFixed(2);
            }
            else if (standard == 'Guaranteed 2:1 Standard') {
                document.getElementById("txtTPrice").value = (nop * 17.95).toFixed(2);
            }
            else if (standard == 'Guaranteed 2:2 Standard') {
                document.getElementById("txtTPrice").value = (nop * 15.95).toFixed(2);
            }
            break;
        case "14 6-7 Days":
            if (standard == 'Guaranteed First Class') {
                document.getElementById("txtTPrice").value = (nop * 22.95).toFixed(2);
            }
            else if (standard == 'Guaranteed 2:1 Standard') {
                document.getElementById("txtTPrice").value = (nop * 19.95).toFixed(2);
            }
            else if (standard == 'Guaranteed 2:2 Standard') {
                document.getElementById("txtTPrice").value = (nop * 17.95).toFixed(2);
            }
            break;
        case "14 5 Days":
            if (standard == 'Guaranteed First Class') {
                document.getElementById("txtTPrice").value = (nop * 24.95).toFixed(2);
            }
            else if (standard == 'Guaranteed 2:1 Standard') {
                document.getElementById("txtTPrice").value = (nop * 21.95).toFixed(2);
            }
            else if (standard == 'Guaranteed 2:2 Standard') {
                document.getElementById("txtTPrice").value = (nop * 19.95).toFixed(2);
            }
            break;
        case "14 4 Days":
            if (standard == 'Guaranteed First Class') {
                document.getElementById("txtTPrice").value = (nop * 26.95).toFixed(2);
            }
            else if (standard == 'Guaranteed 2:1 Standard') {
                document.getElementById("txtTPrice").value = (nop * 23.95).toFixed(2);
            }
            else if (standard == 'Guaranteed 2:2 Standard') {
                document.getElementById("txtTPrice").value = (nop * 21.95).toFixed(2);
            }
            break;
        case "14 3 Days":
            if (standard == 'Guaranteed First Class') {
                document.getElementById("txtTPrice").value = (nop * 28.95).toFixed(2);
            }
            else if (standard == 'Guaranteed 2:1 Standard') {
                document.getElementById("txtTPrice").value = (nop * 25.95).toFixed(2);
            }
            else if (standard == 'Guaranteed 2:2 Standard') {
                document.getElementById("txtTPrice").value = (nop * 23.95).toFixed(2);
            }
            break;
        case "14 48 Hours":
            if (standard == 'Guaranteed First Class') {
                document.getElementById("txtTPrice").value = (nop * 30.95).toFixed(2);
            }
            else if (standard == 'Guaranteed 2:1 Standard') {
                document.getElementById("txtTPrice").value = (nop * 27.95).toFixed(2);
            }
            else if (standard == 'Guaranteed 2:2 Standard') {
                document.getElementById("txtTPrice").value = (nop * 25.95).toFixed(2);
            }
            break;
        case "14 24 Hours":
            if (standard == 'Guaranteed First Class') {
                document.getElementById("txtTPrice").value = (nop * 32.95).toFixed(2);
            }
            else if (standard == 'Guaranteed 2:1 Standard') {
                document.getElementById("txtTPrice").value = (nop * 29.95).toFixed(2);
            }
            else if (standard == 'Guaranteed 2:2 Standard') {
                document.getElementById("txtTPrice").value = (nop * 27.95).toFixed(2);
            }
            break;
        //--------------------------------------------------------------------------------------------------------- 
        case "15 3 Weeks":
            if (standard == 'Guaranteed First Class') {
                document.getElementById("txtTPrice").value = (nop * 19.95).toFixed(2);
            }
            else if (standard == 'Guaranteed 2:1 Standard') {
                document.getElementById("txtTPrice").value = (nop * 16.95).toFixed(2);
            }
            else if (standard == 'Guaranteed 2:2 Standard') {
                document.getElementById("txtTPrice").value = (nop * 14.95).toFixed(2);
            }
            break;
        case "15 2 Weeks":
            if (standard == 'Guaranteed First Class') {
                document.getElementById("txtTPrice").value = (nop * 21.95).toFixed(2);
            }
            else if (standard == 'Guaranteed 2:1 Standard') {
                document.getElementById("txtTPrice").value = (nop * 18.95).toFixed(2);
            }
            else if (standard == 'Guaranteed 2:2 Standard') {
                document.getElementById("txtTPrice").value = (nop * 16.95).toFixed(2);
            }
            break;
        case "15 1 Week":
            if (standard == 'Guaranteed First Class') {
                document.getElementById("txtTPrice").value = (nop * 23.95).toFixed(2);
            }
            else if (standard == 'Guaranteed 2:1 Standard') {
                document.getElementById("txtTPrice").value = (nop * 20.95).toFixed(2);
            }
            else if (standard == 'Guaranteed 2:2 Standard') {
                document.getElementById("txtTPrice").value = (nop * 18.95).toFixed(2);
            }
            break;
        case "15 5 Days":
            if (standard == 'Guaranteed First Class') {
                document.getElementById("txtTPrice").value = (nop * 25.95).toFixed(2);
            }
            else if (standard == 'Guaranteed 2:1 Standard') {
                document.getElementById("txtTPrice").value = (nop * 22.95).toFixed(2);
            }
            else if (standard == 'Guaranteed 2:2 Standard') {
                document.getElementById("txtTPrice").value = (nop * 20.95).toFixed(2);
            }
            break;
        case "15 4 Days":
            if (standard == 'Guaranteed First Class') {
                document.getElementById("txtTPrice").value = (nop * 27.95).toFixed(2);
            }
            else if (standard == 'Guaranteed 2:1 Standard') {
                document.getElementById("txtTPrice").value = (nop * 24.95).toFixed(2);
            }
            else if (standard == 'Guaranteed 2:2 Standard') {
                document.getElementById("txtTPrice").value = (nop * 22.95).toFixed(2);
            }
            break;
        case "15 3 Days":
            if (standard == 'Guaranteed First Class') {
                document.getElementById("txtTPrice").value = (nop * 29.95).toFixed(2);
            }
            else if (standard == 'Guaranteed 2:1 Standard') {
                document.getElementById("txtTPrice").value = (nop * 26.95).toFixed(2);
            }
            else if (standard == 'Guaranteed 2:2 Standard') {
                document.getElementById("txtTPrice").value = (nop * 24.95).toFixed(2);
            }
            break;
        case "15 48 Hours":
            if (standard == 'Guaranteed First Class') {
                document.getElementById("txtTPrice").value = (nop * 31.95).toFixed(2);
            }
            else if (standard == 'Guaranteed 2:1 Standard') {
                document.getElementById("txtTPrice").value = (nop * 28.95).toFixed(2);
            }
            else if (standard == 'Guaranteed 2:2 Standard') {
                document.getElementById("txtTPrice").value = (nop * 26.95).toFixed(2);
            }
            break;
        case "15 24 Hours":
            if (standard == 'Guaranteed First Class') {
                document.getElementById("txtTPrice").value = (nop * 33.95).toFixed(2);
            }
            else if (standard == 'Guaranteed 2:1 Standard') {
                document.getElementById("txtTPrice").value = (nop * 30.95).toFixed(2);
            }
            else if (standard == 'Guaranteed 2:2 Standard') {
                document.getElementById("txtTPrice").value = (nop * 28.95).toFixed(2);
            }
            break;
        //---------------------------------------------------------------------------------------------------------           
    }
    
    
 }
 

  
/**  
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('drNOP').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('drNOP').options[0] = option0;
                for(var i=1;i<=50;i++)
                {  
                    option = new Option(i,i)
                    document.getElementById('drNOP').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('drNOP').options[0] = option0;
                for(var i=1;i<=20;i++)
                {  
                    option = new Option(i,i)
                    document.getElementById('drNOP').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('drNOP').options[0] = option0;
                for(var i=1;i<=50;i++)
                {  
                    option = new Option(i,i)
                    document.getElementById('drNOP').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('drNOP').options[0] = option0;
                for(var i=1;i<=20;i++)
                {  
                    option = new Option(i,i)
                    document.getElementById('drNOP').options[i] = option;
                }
            }
            else if (packID == "2")
            {
                document.getElementById('hdPrice').value = 0.01;
                   
                option0 = new Option("Select No Of Pages","0")
                document.getElementById('drNOP').options[0] = option0;
                for(var i=1;i<=50;i++)
                {  
                    option = new Option(i,i)
                    document.getElementById('drNOP').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('drNOP').options[0] = option0;
                for(var i=1;i<=20;i++)
                {  
                    option = new Option(i,i)
                    document.getElementById('drNOP').options[i] = option;
                }
            }
            else if (packID == "2")
            {
                document.getElementById('hdPrice').value = 0.03;
                   
                option0 = new Option("Select No Of Pages","0")
                document.getElementById('drNOP').options[0] = option0;
                for(var i=1;i<=50;i++)
                {  
                    option = new Option(i,i)
                    document.getElementById('drNOP').options[i] = option;
                }
            }
            break;                 
        }
     
}

function calPrice()
{
    var selIndex1=document.getElementById("drNOP").selectedIndex;
    //var empName=document.getElementById("DropDownList2").options(selIndex).value;
    var NOP=document.getElementById("drNOP").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';
}

**/