﻿// JScript File
function ValidatePassword(source, arguments)
{
  if ((arguments.Value.length) >= 5)
     arguments.IsValid=true;
  else
     arguments.IsValid=false;
}

function ValidateCountry(source, arguments)
{
  if ((arguments.Value) != 0)
     arguments.IsValid=true;
  else
     arguments.IsValid=false;
}
/*
function addEventHandler(node, type, f) {
    if (node.addEventListener) {
        node.addEventListener(type, f, false); 
    } else if (node.attachEvent) {       
        node.attachEvent("on" + type, f); 
    } else {
        node["on" + type] = f;
    } 
}

function showPromoField(){
    $('PromoCode').style.display = "none";
    $('PromoCode1').style.display = "block";
    $('PromoCodeLabel').innerHTML = "Promotional Code";
}*/

function showBtn(){
    $('NextButton').style.display = "block";
}

window.addEvent('domready', function(){
    /*var SubscribeTips = new Tips($$('.ToolTIP'), {
        className: 'custom',
        maxTitleChars: 50
    });   */          
    
    var Tips2 = new Tips($$('.ToolTIP'), {
	initialize:function(){
		this.fx = new Fx.Style(this.toolTip, 'opacity', {duration: 300, wait: false}).set(0);
	},
	onShow: function(toolTip) {
		this.fx.start(1);
	},
	onHide: function(toolTip) {
		this.fx.start(0);
	},
	className: 'custom',
	maxTitleChars: 50
});         
}); 