var border_width='1px';
var border_style='solid';
var border_color='#3B3B3B';

var select_color='#e8e8e8';
var off_color='#ffffff';

var border_on = border_width + " " + border_style + " " + border_color; 
var border_off = border_width + " " + border_style + " " + off_color;


function select_row(what, num)
	{
	if (navigator.appName == 'Microsoft Internet Explorer') 
		{
		row = document.all[what + "_row" + num.toString()];
		if (!row) return;
		row.style.backgroundColor = select_color;

		lcell = document.all[what + "_left_cell" + num.toString()];
		rcell = document.all[what + "_right_cell" + num.toString()];

		lcell.style.borderLeft = border_on;
		lcell.style.borderTop = border_on;
		lcell.style.borderBottom = border_on;

		rcell.style.borderRight = border_on;
		rcell.style.borderTop = border_on;
		rcell.style.borderBottom = border_on;

		var i = 0;

		while(i < 10)
			{
			if (!document.all[what + "_row" + i.toString()]) break;

			if (i != num)
				{
				row = document.all[what + "_row" + i.toString()];
				lcell = document.all[what + "_left_cell" + i.toString()];
				rcell = document.all[what + "_right_cell" + i.toString()];

				row.style.backgroundColor = off_color;

				lcell.style.borderLeft = border_off;
				lcell.style.borderTop = border_off;
				lcell.style.borderBottom = border_off;

				rcell.style.borderRight = border_off;
				rcell.style.borderTop = border_off;
				rcell.style.borderBottom = border_off;
				}
			i++;
			}
		}
	else if (navigator.appName == 'Netscape') 
		{
		row = document.getElementById(what + "_row" + num.toString());
		if(!row) return;
		row.style.backgroundColor = select_color;

		lcell = document.getElementById(what + "_left_cell" + num.toString());
		rcell = document.getElementById(what + "_right_cell" + num.toString());

		lcell.style.borderLeft = border_on;
		lcell.style.borderTop = border_on;
		lcell.style.borderBottom = border_on;

		rcell.style.borderRight = border_on;
		rcell.style.borderTop = border_on;
		rcell.style.borderBottom = border_on;

		rows = document.getElementsByName(what + "_row");
		lcells = document.getElementsByName(what + "_left_cell");
		rcells = document.getElementsByName(what + "_right_cell");

		for(var i = 0; i < rows.length; i++)
			{
			if(i != num)
				{
				rows[i].style.backgroundColor = off_color;

				lcells[i].style.borderLeft = border_off;
				lcells[i].style.borderTop = border_off;
				lcells[i].style.borderBottom = border_off;

				rcells[i].style.borderRight = border_off;
				rcells[i].style.borderTop = border_off;
				rcells[i].style.borderBottom = border_off;
				}
			}
		}
	else
		{
		}
	}


function procesarhosting(){

var paso=0;

if(document.forms[0].servicio[0].checked) {
   paso=1;
   document.hosting.servicio.value="WEB HOSTING PERSONAL";
   document.hosting.item_number.value="WEBHOSTINGPERSONAL";
   if (document.hosting.formadepago.value=='Mensual'){
       document.hosting.precio.value="1.35";
       document.hosting.t3.value="M";
   }

   if (document.hosting.formadepago.value=="Anual"){
       document.hosting.precio.value="14.99";
       document.hosting.t3.value="Y";
   }
}

if(document.forms[0].servicio[1].checked) {
   paso=1;
   document.hosting.servicio.value="WEB HOSTING BASICO";
   document.hosting.item_number.value="WEBHOSTINGBASICO";
   if (document.hosting.formadepago2.value=='Mensual'){
       document.hosting.precio.value="2.50";
       document.hosting.t3.value="M";
   }

   if (document.hosting.formadepago2.value=="Anual"){
       document.hosting.precio.value="29.99";
       document.hosting.t3.value="Y";
   }
}

if(document.forms[0].servicio[2].checked) {
   paso=1;
   document.hosting.servicio.value="WEB HOSTING PROFESIONAL";
   document.hosting.item_number.value="WEBHOSTINGPROFESIONAL";
   if (document.hosting.formadepago3.value=='Mensual'){
       document.hosting.precio.value="4.95";
       document.hosting.t3.value="M";
   }

   if (document.hosting.formadepago3.value=="Anual"){
       document.hosting.precio.value="59.40";
       document.hosting.t3.value="Y";
   }
}

if(document.forms[0].servicio[3].checked) {
   paso=1;
   document.hosting.servicio.value="WEB HOSTING EMPRESARIAL";
   document.hosting.item_number.value="WEBHOSTINGEMPRESARIAL";
   if (document.hosting.formadepago4.value=='Mensual'){
       document.hosting.precio.value="7.50";
       document.hosting.t3.value="M";
   }

   if (document.hosting.formadepago4.value=="Anual"){
       document.hosting.precio.value="90.00";
       document.hosting.t3.value="Y";
   }
}

if(document.forms[0].servicio[4].checked) {
   paso=1;
   document.hosting.servicio.value="WEB HOSTING DESARROLLADOR";
   document.hosting.item_number.value="WEBHOSTINGDESARROLLADOR";
   if (document.hosting.formadepago5.value=='Mensual'){
       document.hosting.precio.value="9.99";
       document.hosting.t3.value="M";
   }

   if (document.hosting.formadepago5.value=="Anual"){
       document.hosting.precio.value="119.88";
       document.hosting.t3.value="Y";
   }
}

   
   document.hosting.item_name.value=document.hosting.servicio.value;
   document.hosting.a3.value=document.hosting.precio.value;
   document.hosting.os0.value=document.hosting.domain.value;
   document.hosting.os1.value=document.hosting.email.value;

   if(paso==0){
   alert('Por Favor seleccione el Servicio de Web Hosting que desea\nGracias !!! ');
   return false;
   }


 if (!document.hosting.domain.value.length) {
    alert("Por Favor escriba el Dominio para el que desea el servicio de Web Hosting");
	return false;
  }
  if (!isDomain(document.hosting.domain.value)) {
    alert("Por Favor escriba un Dominio Valido");
	return false
  }


  if (document.hosting.domain.value != document.hosting.domain2.value ) {
    alert("El Dominio y la Repetición de Dominio son diferentes");
	return false
  }

  if (!isEmail(document.hosting.email.value)) {
    alert("Por Favor escriba una dirección de email valida");
	return false
  }

  if (document.hosting.email.value != document.hosting.email2.value ) {
    alert("El Email y la repetición de Email son diferentes");
	return false
  }

  
  if (!document.hosting.agree.checked) {
    alert("Seleccione SI Acepta las Políticas y Terminos de servicio de la Empresa");
    return false
  }

  function isEmail(str) {
	var filter  = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
	return (filter.test(str));
  }

  function isDomain(str) {
	var filter  = /^(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
	return (filter.test(str));
  }



// If we've gotten this far, everything's valid!
return true;

}


function procesarreseller(){

var paso=0;

if(document.forms[0].servicio[0].checked) {
   paso=1;
   document.hosting.servicio.value="RESELLER BASICO";
   document.hosting.item_number.value="RESELLERBASICO";
   if (document.hosting.formadepago.value=='Mensual'){
       document.hosting.precio.value="19.95";
       document.hosting.t3.value="M";
   }

   if (document.hosting.formadepago.value=="Anual"){
       document.hosting.precio.value="239.40";
       document.hosting.t3.value="Y";
   }
}

if(document.forms[0].servicio[1].checked) {
   paso=1;
   document.hosting.servicio.value="RESELLER STANDARD";
   document.hosting.item_number.value="RESELLERSTANDARD";
   if (document.hosting.formadepago2.value=='Mensual'){
       document.hosting.precio.value="39.95";
       document.hosting.t3.value="M";
   }

   if (document.hosting.formadepago2.value=="Anual"){
       document.hosting.precio.value="479.40";
       document.hosting.t3.value="Y";
   }
}

if(document.forms[0].servicio[2].checked) {
   paso=1;
   document.hosting.servicio.value="MEGA RESELLER";
   document.hosting.item_number.value="MEGARESELLER";
   if (document.hosting.formadepago3.value=='Mensual'){
       document.hosting.precio.value="79.95";
       document.hosting.t3.value="M";
   }

   if (document.hosting.formadepago3.value=="Anual"){
       document.hosting.precio.value="959.40";
       document.hosting.t3.value="Y";
   }
}
   
   document.hosting.item_name.value=document.hosting.servicio.value;
   document.hosting.a3.value=document.hosting.precio.value;
   document.hosting.os0.value=document.hosting.domain.value;
   document.hosting.os0.value +=" / DNS1: "+document.hosting.nameserver1.value+"."+document.hosting.domain.value;
   document.hosting.os0.value +=" / DNS2: "+document.hosting.nameserver2.value+"."+document.hosting.domain.value;
   document.hosting.os1.value=document.hosting.email.value;

   if(paso==0){
   alert('Por Favor seleccione el Servicio de Web Hosting que desea\nGracias !!! ');
   return false;
   }


 if (!document.hosting.domain.value.length) {
    alert("Por Favor escriba el Dominio para el que desea el servicio de Web Hosting");
	return false;
  }
  if (!isDomain(document.hosting.domain.value)) {
    alert("Por Favor escriba un Dominio Valido");
	return false
  }


  if (document.hosting.domain.value != document.hosting.domain2.value ) {
    alert("El Dominio y la Repetición de Dominio son diferentes");
	return false
  }

 if (document.hosting.nameserver1.value=="") {
    alert("Por Favor escriba el Name Server 1\nque desea para su servicio de Reseller.\n\n\nLos Name Servers Privados le brindan independencia\ncomo una verdadera empresa de Web Hosting\nSin ninguna referencia a VANHOSTINGWEB.COM®");
	return false
  }

  if (document.hosting.nameserver2.value=="") {
    alert("Por Favor escriba el Name Server 2\nque desea para su servicio de Reseller.\n\n\nLos Name Servers Privados le brindan independencia\ncomo una verdadera empresa de Web Hosting\nSin ninguna referencia a VAHOSTINGWEB.COM®");
	return false
  }

  if (!isEmail(document.hosting.email.value)) {
    alert("Por Favor escriba una dirección de email valida");
	return false
  }

  if (document.hosting.email.value != document.hosting.email2.value ) {
    alert("El Email y la repetición de Email son diferentes");
	return false
  }

  
  if (!document.hosting.agree.checked) {
    alert("Seleccione SI Acepta las Políticas y Terminos de servicio de la Empresa");
    return false
  }

  function isEmail(str) {
	var filter  = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
	return (filter.test(str));
  }

  function isDomain(str) {
	var filter  = /^(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
	return (filter.test(str));
  }



// If we've gotten this far, everything's valid!
return true;

}


function procesardominio(){

var paso=0;

if(document.hosting.servicio.checked) {
   paso=1;
   document.hosting.servicio.value="DOMINIO WEB";
   document.hosting.item_number.value="DOMINIO";
   
   if (document.hosting.formadepago.value=="Anual"){
       document.hosting.precio.value="14.99";
       document.hosting.t3.value="Y";
   }
}


   document.hosting.item_name.value=document.hosting.servicio.value;
   document.hosting.a3.value=document.hosting.precio.value;
   document.hosting.os0.value=document.hosting.domain.value;
   document.hosting.os1.value=document.hosting.email.value;


   if(paso==0){
   alert('Por Favor seleccione la Subscripción de Dominio\nGracias !!! ');
   return false;
   }


 if (!document.hosting.domain.value.length) {
    alert("Por Favor escriba el Dominio que desea");
	return false;
  }
  if (!isDomain(document.hosting.domain.value)) {
    alert("Por Favor escriba un Dominio Valido");
	return false
  }


  if (document.hosting.domain.value != document.hosting.domain2.value ) {
    alert("El Dominio y la Repetición de Dominio son diferentes");
	return false
  }

  if (!isEmail(document.hosting.email.value)) {
    alert("Por Favor escriba una dirección de email valida");
	return false
  }

  if (document.hosting.email.value != document.hosting.email2.value ) {
    alert("El Email y la repetición de Email son diferentes");
	return false
  }

  
  if (!document.hosting.agree.checked) {
    alert("Seleccione SI Acepta las Políticas y Terminos de servicio de la Empresa");
    return false
  }

  function isEmail(str) {
	var filter  = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
	return (filter.test(str));
  }

  function isDomain(str) {
	var filter  = /^(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
	return (filter.test(str));
  }



// If we've gotten this far, everything's valid!
return true;

}

function procesarpaquetepersonal(){

var paso=0;

if(document.hosting.servicio.checked) {
   paso=1;
   document.hosting.servicio.value="PAQUETE PERSONAL";
   document.hosting.item_number.value="PAQUETEPERSONAL";
   
   if (document.hosting.formadepago.value=="Anual"){
       document.hosting.precio.value="29.99";
       document.hosting.t3.value="Y";
   }
}


   document.hosting.item_name.value=document.hosting.servicio.value;
   document.hosting.a3.value=document.hosting.precio.value;
   document.hosting.os0.value=document.hosting.domain.value;
   document.hosting.os1.value=document.hosting.email.value;


   if(paso==0){
   alert('Por Favor seleccione el Servicio de Web Hosting que desea\nGracias !!! ');
   return false;
   }


 if (!document.hosting.domain.value.length) {
    alert("Por Favor escriba el Dominio para el que desea el servicio de Web Hosting");
	return false;
  }
  if (!isDomain(document.hosting.domain.value)) {
    alert("Por Favor escriba un Dominio Valido");
	return false
  }


  if (document.hosting.domain.value != document.hosting.domain2.value ) {
    alert("El Dominio y la Repetición de Dominio son diferentes");
	return false
  }

  if (!isEmail(document.hosting.email.value)) {
    alert("Por Favor escriba una dirección de email valida");
	return false
  }

  if (document.hosting.email.value != document.hosting.email2.value ) {
    alert("El Email y la repetición de Email son diferentes");
	return false
  }

  
  if (!document.hosting.agree.checked) {
    alert("Seleccione SI Acepta las Políticas y Terminos de servicio de la Empresa");
    return false
  }

  function isEmail(str) {
	var filter  = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
	return (filter.test(str));
  }

  function isDomain(str) {
	var filter  = /^(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
	return (filter.test(str));
  }



// If we've gotten this far, everything's valid!
return true;

}




function procesar(){

document.write('<input name="precio" value="" type="hidden">');
document.write('<input name="business" value="" type="hidden">');
document.write('<input name="no_note" value="0" type="hidden">');
document.write('<input name="currency_code" value="USD" type="hidden">');
document.write('<input name="src" value="1" type="hidden">');
document.write('<input name="sra" value="1" type="hidden">');
document.write('<input name="item_number" value="" type="hidden">');
document.write('<input name="item_name" value="" type="hidden">');
document.write('<input name="p3" value="1" type="hidden">');
document.write('<input name="a3" value="" type="hidden">');
document.write('<input name="t3" value="" type="hidden">');
document.write('<input name="on0" value="Dominio" type="hidden">');
document.write('<input name="os0" value="" type="hidden">');
document.write('<input name="on1" value="Email de Contacto" type="hidden">');
document.write('<input name="os1" value="" type="hidden">');
}


function descstreaming(){
 var promocion=document.streaming.promocode.value; 
 if ((promocion=="juanpi")||(promocion=="JUANPI")){
     document.streaming.pd.value="ok";
     document.streaming.descuento.value="5";
 }
 else
 if ((promocion=="NICOLAS")||(promocion=="nicolas")){
     document.streaming.pd.value="ok";
     document.streaming.descuento.value="2.5";
 }
 else
 if ((promocion=="ALEJANDRO")||(promocion=="alejandro")){
     document.streaming.pd.value="ok";
     document.streaming.descuento.value="2";
 }
 else
 if ((promocion=="personal")||(promocion=="PERSONAL")){
     document.streaming.pd.value="ok";
     document.streaming.descuento.value="2.88";
 }
 else
 if ((promocion=="estandar")||(promocion=="ESTANDAR")){
     document.streaming.pd.value="ok";
     document.streaming.descuento.value="10.3";
 }
 else
 if ((promocion=="profesional")||(promocion=="PROFESIONAL")){
     document.streaming.pd.value="ok";
     document.streaming.descuento.value="2.99";
 }
 else
  if ((promocion=="carnaval 2007")||(promocion=="CARNVAL 2007")){
     document.streaming.pd.value="ok";
     document.streaming.descuento.value="9";
 }
 else
  {
          document.streaming.pd.value="";
       }

}



function prostreaming(){

document.write('<input name="business" value="" type="hidden">');
document.write('<input name="no_note" value="0" type="hidden">');
document.write('<input name="currency_code" value="USD" type="hidden">');
document.write('<input name="src" value="1" type="hidden">');
document.write('<input name="sra" value="1" type="hidden">');
document.write('<input name="p3" value="1" type="hidden">');
document.write('<input name="t3" value="M" type="hidden">');
}






