<!--
	function check_source()
	{ 
		var msgout='Select a source code first \n';
		if (document.Login.source_id_ref.value == "")
		{
			alert(msgout);
			document.Login.source_id.focus();
			return false;
		}
			return true;
	}
//-->


<!--
	function check_length(password)
	{ 
		var minlength=6
		if (password.value.length<minlength)
		{
			alert("Your password must be at least 6 characters in length.");
			password.focus();
			return false;
		}
			return true;
	}
//-->


<!--
	function change_source()
	{ 
		
		if (document.Login.source_id.value == "")
		{
			var msgout='Enter the new source code then press SET';
			alert(msgout);
			document.Login.source_id.focus();
			return false;
		}
		if (document.Login.source_id_ref.value == document.Login.source_id.value)
		{
			var msgout='Enter the new source code then press CHANGE';
			alert(msgout);
			document.Login.source_id.value = "";
			document.Login.source_id.focus();
			return false;
		}
			return true;
	}
//-->

<!--
	function check_cart()
	{ 
		var msgout='You cannot change the Source \n Code unless the cart is empty ';
		if (document.source_lookup.cart_ref.value != "")
		{
			alert(msgout);
			return false;
		}
			return true;
	}
//-->

<!--

	function verifypassword(inpassword1, inpassword2)
	{
		var msgout;
		if (inpassword1.value != inpassword2.value)
		{
			msgout='The Password fields must match! \n';
			alert(msgout);
			inpassword1.value = "";
			inpassword2.value = "";
			return false;
		}
		if (inpassword1.value != "" && inpassword1.value.length < 6)
		{
			msgout='The Password must be at least 6 characters long! \n';
			alert(msgout);
			inpassword1.value = "";
			inpassword2.value = "";
			return false;
		}
		return true;
	}
//-->

<!--

    function compadd(form) 
	{
		var i = form.value;
		i++;
    	form.value = i;
    }
//-->

<!--

    function compremove(form) 
	{
    	var i = form.value;
		if (i!=0) i--;
    	form.value = i;
    }	
//-->

<!--//
	function check_radio()
	{ 
			document.process_order.payment_type[2].checked = true;	
	}
//-->

<!--

    function assign_date(inday, dayvalue, inmonth, monthvalue, inyear, yearvalue) 
	{
    	inday.value = dayvalue;
		inmonth.value = monthvalue;
		inyear.value = yearvalue;
		return false;
    }
//-->

<!--

    function assign_time(time, hourvalue, minutevalue, ampm, ampmvalue) 
	{
    	time.value = hourvalue + ":" + minutevalue;
		ampm.value = ampmvalue;
		return false;
    }
//-->


<!--

function autojump(fieldName,nextFieldName,fakeMaxLength)
{
var myForm=document.forms[document.forms.length - 1];
var myField=myForm.elements[fieldName];
myField.nextField=myForm.elements[nextFieldName];

if (myField.maxLength == null)
   myField.maxLength=fakeMaxLength;

myField.onkeydown=autojump_keyDown;
myField.onkeyup=autojump_keyUp;
}

//-->

<!--
var downStrokeField;
function autojump_keyDown()
{
this.beforeLength=this.value.length;
downStrokeField=this;
}

//-->

<!--
var downStrokeField;
function autojump_keyUp()
{
if (
   (this == downStrokeField) && 
   (this.value.length > this.beforeLength) && 
   (this.value.length >= this.maxLength)
   )
   this.nextField.focus();
downStrokeField=null;
}
//-->

<!--
function openWindow (earl,name,widgets) {	
	var url = earl;			
	popupWin = window.open (url,name,widgets);
	popupWin.opener.top.name="opener";
	popupWin.focus();
	}
//-->

<!--
function show_between (incompare,indiv) 
{	
	if (incompare.value == 'bt')
	{
	indiv.className = 'medblackfont';
	}
	else
	{
	indiv.className = 'invisible';
	}
}
//-->

<!--
function show_hide (inobject,inclass) 
{	
	if (inobject.className == 'invisible')
	{
	inobject.className = inclass;
	inobject.focus();
	}
	else
	{
	inobject.className = 'invisible';
	}
}
//-->


function setDivVisibility(nm,value){
	var style=document.all?document.all(nm).style:(document.getElementById?document.getElementById(nm).style:(document.layers?document.layers[nm]:null));
	var isNS = navigator.appName.indexOf("Netscape")  != -1
	var isIE = navigator.appName.indexOf("Microsoft") != -1
if(document.layers){
	if (isIE) style.visibility=value?'inherit':'hidden';
	if (isNS) style.visibility=value?'relative':'hide';
	}  
else
	style.display=value?'':'none';
}

function OpenCloseDiv(divID) {
	if (document.all) {
		var divShow = document.all(divID);
	} else {
		var divShow = document.getElementById(divID);
	}
	if (divShow.style.display == 'none') {
		divShow.style.display = 'block';
	} else {
		divShow.style.display = 'none';
	}
}

function ExpandCollapseDiv(divID,imgID,imgPath) {
	if (document.all) {
		var divShow = document.all(divID);
		var divImgLink = document.all(imgID);
	} else {
		var divShow = document.getElementById(divID);
		var divImgLink = document.getElementById(imgID);
	}
	if (divShow.style.display == 'none') {
		imageName = "./images/fecha.gif";
		divShow.style.display = 'block';
		divImgLink.src = imageName;
	} else {
		imageName = "./images/abre.gif";
		divShow.style.display = 'none';
		divImgLink.src = imageName;
	}
}

function fixFormfieldSize(decNum){
  if(navigator.appName != 'Netscape'){
    var incrVal="."+decNum;
    for(i=0;i<document.forms.length;i++){
      for(j=0;j<document.forms[i].elements.length;j++){
        var formObj=document.forms[i].elements[j];
        if(formObj.type.toLowerCase() == "text" || formObj.type.toLowerCase() == "password" || formObj.type.toLowerCase() == "file"){
          formincr=formObj.size*eval(incrVal);
          formObj.size=formObj.size+formincr;
        }else if(document.forms[i].elements[j].type.toLowerCase() == "textarea"){
          formincr=formObj.cols*eval(incrVal/5);
          formObj.cols=formObj.cols+formincr;
        }
      }
    }
  }
}
//  End -->

<!--

function payment_win(url) {

	agent = navigator.userAgent;
	windowName = "Contact";

	params  = "";
	params += "toolbar=0,";
	params += "location=0,";
	params += "directories=0,";
	params += "status=0,";
	params += "menubar=0,";
	params += "scrollbars=1,";
	params += "resizable=1,";
	params += "width=400,";
	params += "height=300";

	win = window.open(url, windowName , params);

	if (agent.indexOf("Mozilla/2") != -1 && agent.indexOf("Win") == -1) {
		win = window.open(url, windowName , params);
		}

	if (!win.opener) {
		win.opener = window;
		}

	}
//-->

<!--
function confirm_submit(messagetext, form) {
	tmp = window.confirm(messagetext);
					if (tmp == true)
					{
						form.submit();
					}
					else
					{
						return false;
					}  
}
// -->



