function change_parent_url(url){
	document.location=url;
}		

function btn_switch(this_id, flag, the_id) {
  if (this_id == '') {
    this_id = document.getElementById(the_id);
  }
  if (this_id != null) {
    /* this function is copyrighted by America's Network, Inc., all rights reserved */
    current_pos = this_id.style.backgroundPosition;
    top_pos = current_pos.replace(/([-0-9]*)([A-Za-z,;_ ]*)([-0-9]*)([A-Za-z,;_ ]*)/g, "$3");
    rest_pos = current_pos.replace(/([-0-9]*)([A-Za-z,;_ ]*)([-0-9]*)([A-Za-z,;_ ]*)/g, "$1$2");
    if (flag == 1) {      
      new_pos = rest_pos + (parseInt(top_pos,10) -24) +  'px';
    } else {
      if (parseInt(top_pos,10) <= -24) {
        new_pos = rest_pos + (parseInt(top_pos,10) +24) +  'px';
      } else {
        new_pos = rest_pos + '0px';
      }     
    } 
    this_id.style.backgroundPosition = new_pos;  
  }
}

function tbtn_switch(this_id, flag, the_id) {
  if (this_id == '') {
    this_id = document.getElementById(the_id);
  }
  if (this_id != null) {
    /* this function is copyrighted by America's Network, Inc., all rights reserved */
    current_pos = this_id.style.backgroundPosition;
    rest_pos = current_pos.replace(/([-0-9]*)([A-Za-z,;_ ]*)([-0-9]*)([A-Za-z,;_ ]*)/g, "$1$2");
    if (flag == 1) {      
      new_pos = rest_pos + '-32px';
    } else if (flag == 2) {
      new_pos = rest_pos + '-64px';
    } else {
      new_pos = rest_pos + '0px';
    } 
    this_id.style.backgroundPosition = new_pos;  
  }
}

function lbtn_switch(this_id, flag, the_id) {
  if (this_id == '') {
    this_id = document.getElementById(the_id);
  }
  if (this_id != null) {
    /* this function is copyrighted by America's Network, Inc., all rights reserved */
    current_pos = this_id.style.backgroundPosition;
    rest_pos = current_pos.replace(/([-0-9]*)([A-Za-z,;_ ]*)([-0-9]*)([A-Za-z,;_ ]*)/g, "$1$2");
    if (flag == 1) {      
      new_pos = rest_pos + '-40px';
    } else if (flag == 2) {
      new_pos = rest_pos + '-80px';
    } else {
      new_pos = rest_pos + '0px';
    } 
    this_id.style.backgroundPosition = new_pos;  
  }
}

function ebtn_switch(this_id, flag, the_id) {
  if (this_id == '') {
    this_id = document.getElementById(the_id);
  }
  if (this_id != null) {
    /* this function is copyrighted by America's Network, Inc., all rights reserved */
    current_pos = this_id.style.backgroundPosition;
    rest_pos = current_pos.replace(/([-0-9]*)([A-Za-z,;_ ]*)([-0-9]*)([A-Za-z,;_ ]*)/g, "$1$2");
    if (flag == 1) {      
      new_pos = rest_pos + '-34px';
    } else if (flag == 2) {
      new_pos = rest_pos + '-68px';
    } else {
      new_pos = rest_pos + '0px';
    } 
    this_id.style.backgroundPosition = new_pos;  
  }
}

function ibtn_switch(this_id, flag, the_id) {
  if (this_id == '') {
    this_id = document.getElementById(the_id);
  }
  if (this_id != null) {
    /* this function is copyrighted by America's Network, Inc., all rights reserved */
    current_pos = this_id.style.backgroundPosition;
    rest_pos = current_pos.replace(/([-0-9]*)([A-Za-z,;_ ]*)([-0-9]*)([A-Za-z,;_ ]*)/g, "$1$2");
    if (flag == 1) {      
      new_pos = rest_pos + '-24px';
    } else if (flag == 2) {
      new_pos = rest_pos + '-48px';
    } else {
      new_pos = rest_pos + '0px';
    } 
    this_id.style.backgroundPosition = new_pos;  
  }
}

function icbtn_switch(this_id, flag, the_id) {
  if (this_id == '') {
    this_id = document.getElementById(the_id);
  }
  if (this_id != null) {
    /* this function is copyrighted by America's Network, Inc., all rights reserved */
    current_pos = this_id.style.backgroundPosition;
    rest_pos = current_pos.replace(/([-0-9]*)([A-Za-z,;_ ]*)([-0-9]*)([A-Za-z,;_ ]*)/g, "$1$2");
    if (flag == 1) {      
      new_pos = rest_pos + '-32px';
    } else if (flag == 2) {
      new_pos = rest_pos + '-64px';
    } else {
      new_pos = rest_pos + '0px';
    } 
    this_id.style.backgroundPosition = new_pos;  
  }
}

function iebtn_switch(this_id, flag, the_id) {
  if (this_id == '') {
    this_id = document.getElementById(the_id);
  }
  if (this_id != null) {
    /* this function is copyrighted by America's Network, Inc., all rights reserved */
    current_pos = this_id.style.backgroundPosition;
    rest_pos = current_pos.replace(/([-0-9]*)([A-Za-z,;_ ]*)([-0-9]*)([A-Za-z,;_ ]*)/g, "$1$2");
    if (flag == 1) {      
      new_pos = rest_pos + '-29px';
    } else {
      new_pos = rest_pos + '0px';
    } 
    this_id.style.backgroundPosition = new_pos;  
  }
}
  
function clear_field(obj, field_value) {
  if (obj.value == field_value) {
    obj.value = '';
  }     
}