
 var total;
 var The_Value;
 var The_Value1;

function Get_Current_Value(A_Value) {
 The_Value = A_Value;

 }

function Get_Current_Value2(A_Value) {
 The_Value = A_Value;
 document.price_form.The_Value.value = The_Value;
 }

 function submit_form() {

 document.list.submit();

 }


function Adjust_Wattage_Requirements(A_Number, Wattage, Current_Value) {


 if (Current_Value > 0){
   Current_Value1 = (Current_Value * 2)/2;
 }

 if (Current_Value == 0) {
  Current_Value1 = 0;
 }

 if (The_Value > 0){
   The_Value1 = (The_Value * 2)/2;
 }

 if (The_Value < 0){
   temp_value = -1 * The_Value;
   The_Value1 = (-1 * (temp_value * 2)/2);
 }

 if (The_Value == 0) {
  The_Value1 = 0;
 }

 if (A_Number > 0){
   A_Number1 = (A_Number * 2)/2;
 }


 if (A_Number < 0){
  new_number = A_Number * -1;
  A_Number1 = (-1 * (new_number * 2)/2);
 }
 

 if (A_Number == 0) {
  A_Number1 = 0;
 }

if (A_Number > The_Value) { 

     document.price_form.the_price.value = (Current_Value1 + A_Number1);

 }

if (A_Number < The_Value) { 

    document.price_form.the_price.value = (Current_Value1 - The_Value1);
    
 }

if ((A_Number < 0) && (The_Value1 < 0)) { 

  A_Number1 = -1 * (The_Value1 - A_Number)

}


if (A_Number < 0) { 

    document.price_form.the_price.value = Current_Value1 + A_Number1;
    
 }

if ((The_Value < 0) && (A_Number==0)) { 

  document.price_form.the_price.value = Current_Value1 - The_Value1;

}


}


function Adjust_Wattage_Requirements2(A_Number, Wattage, Current_Value) {

document.price_form.A_Number.value = A_Number;

 if (Current_Value > 0){
   Current_Value1 = (Current_Value * 2)/2;
   document.price_form.Current_Value1.value = Current_Value1;
 }

 if (Current_Value == 0) {
  Current_Value1 = 0;
  document.price_form.Current_Value1.value = Current_Value1;
 }

 if (The_Value > 0){
   The_Value1 = (The_Value * 2)/2;
   document.price_form.The_Value1.value = The_Value1;
 }

 if (The_Value < 0){
   temp_value = -1 * The_Value;
   The_Value1 = (-1 * (temp_value * 2)/2);
   document.price_form.The_Value1.value = The_Value1;
 }

 if (The_Value == 0) {
  The_Value1 = 0;
  document.price_form.The_Value1.value = The_Value1;
 }

 if (A_Number > 0){
   A_Number1 = (A_Number * 2)/2;
   document.price_form.A_Number1.value = A_Number1;
 }


 if (A_Number < 0){
  new_number = A_Number * -1;
  A_Number1 = (-1 * (new_number * 2)/2);
  document.price_form.A_Number1.value = A_Number1;
 }
 

 if (A_Number == 0) {
  A_Number1 = 0;
  document.price_form.A_Number1.value = A_Number1;
 }

if (A_Number > The_Value) { 

     document.price_form.the_price.value = (Current_Value1 + A_Number1);

 }

if (A_Number < The_Value) { 

    document.price_form.the_price.value = (Current_Value1 - The_Value1);
    
 }

if ((A_Number < 0) && (The_Value1 < 0)) { 

  A_Number1 = -1 * (The_Value1 - A_Number)
  document.price_form.A_Number1.value = A_Number1;

}


if (A_Number < 0) { 

    document.price_form.the_price.value = Current_Value1 + A_Number1;
    
 }

if ((The_Value < 0) && (A_Number==0)) { 

  document.price_form.the_price.value = Current_Value1 - The_Value1;

}


}

  function highlightButton(s) {
    if ("INPUT"==event.srcElement.tagName)
      event.srcElement.className=s
  }

function borderit(which,color){
//if IE 4+ or NS 6+
if (document.all||document.getElementById){

which.style.borderColor=color
}
}


var message="Function Disabled!";
///////////////////////////////////
function clickIE() {if (document.all) {alert(message);return false;}}
function clickNS(e) {if 
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {alert(message);return false;}}}
if (document.layers) 
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}

document.oncontextmenu=new Function("return false")





// (C) 2003 CodeLifter.com
// Source: CodeLifter.com
// Do not remove this header

// Set the message for the alert box
am = "This function is disabled!";

// do not edit below this line
// ===========================
bV  = parseInt(navigator.appVersion)
bNS = navigator.appName=="Netscape"
bIE = navigator.appName=="Microsoft Internet Explorer"

function nrc(e) {
   if (bNS && e.which > 1){
          return false
   } else if (bIE && (event.button >1)) {
         return false;
   }
}

document.onmousedown = nrc;
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
if (bNS && bV<5) window.onmousedown = nrc;



function borderit(which,color){
//if IE 4+ or NS 6+
if (document.all||document.getElementById){

which.style.borderColor=color
}
}
