var tooltip=function(){ var id = 'tt'; var top = 3; var left = 3; var maxw = 300; var speed = 10; var timer = 20; var endalpha = 95; var alpha = 0; var tt,t,c,b,h; var ie = document.all ? true : false; return{ show:function(v,w){ if(tt == null){ tt = document.createElement('div'); tt.setAttribute('id',id); t = document.createElement('div'); t.setAttribute('id',id + 'top'); c = document.createElement('div'); c.setAttribute('id',id + 'cont'); b = document.createElement('div'); b.setAttribute('id',id + 'bot'); tt.appendChild(t); tt.appendChild(c); tt.appendChild(b); document.body.appendChild(tt); tt.style.opacity = 0; tt.style.filter = 'alpha(opacity=0)'; document.onmousemove = this.pos; } tt.style.display = 'block'; c.innerHTML = v; tt.style.width = w ? w + 'px' : 'auto'; if(!w && ie){ t.style.display = 'none'; b.style.display = 'none'; tt.style.width = tt.offsetWidth; t.style.display = 'block'; b.style.display = 'block'; } if(tt.offsetWidth > maxw){tt.style.width = maxw + 'px'} h = parseInt(tt.offsetHeight) + top; clearInterval(tt.timer); tt.timer = setInterval(function(){tooltip.fade(1)},timer); }, pos:function(e){ var u = ie ? event.clientY + document.documentElement.scrollTop : e.pageY; var l = ie ? event.clientX + document.documentElement.scrollLeft : e.pageX; tt.style.top = (u - h) + 'px'; tt.style.left = (l + left) + 'px'; }, fade:function(d){ var a = alpha; if((a != endalpha && d == 1) || (a != 0 && d == -1)){ var i = speed; if(endalpha - a < speed && d == 1){ i = endalpha - a; }else if(alpha < speed && d == -1){ i = a; } alpha = a + (i * d); tt.style.opacity = alpha * .01; tt.style.filter = 'alpha(opacity=' + alpha + ')'; }else{ clearInterval(tt.timer); if(d == -1){tt.style.display = 'none'} } }, hide:function(){ clearInterval(tt.timer); tt.timer = setInterval(function(){tooltip.fade(-1)},timer); } }; }(); function add_new_user() { var dontseubmit =''; var emailfilter = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/; day = new Date(); thetime = day.getTime(); if (!document.getElementById('signup_name').value) { errorfield('signup_name','Your Name
Please enter your name into this box.',thetime); dontseubmit = 1; } else { unerrorfield('signup_name',thetime); } if (!document.getElementById('signup_email').value) { errorfield('signup_email','Your Email
Please enter your email address into this box.',thetime); dontseubmit = 1; } else if (!emailfilter.test(document.getElementById('signup_email').value)) { errorfield('signup_email','Your Email
Please enter a valid email address.',thetime); dontseubmit = 1; } else { unerrorfield('signup_email',thetime); } if (!document.getElementById('signup_pass').value) { errorfield('signup_pass','Your Password
Please enter your password into this box.',thetime); dontseubmit = 1; } else if (document.getElementById('signup_pass').value.length < 6) { errorfield('signup_pass','Your Password
Please enter a password greater than 6 characters.',thetime); dontseubmit = 1; } else { unerrorfield('signup_pass',thetime); } if (!document.getElementById('signup_cpass').value) { errorfield('signup_cpass','Confirm Your Password
Please re-enter your password into this box.',thetime); dontseubmit = 1; } else if (document.getElementById('signup_cpass').value != document.getElementById('signup_pass').value) { errorfield('signup_cpass','Confirm Your Password
This is not the same as the password entered.',thetime); dontseubmit = 1; } else { unerrorfield('signup_cpass',thetime); } var other_emls = document.getElementById('new_error').value.split("|"); for (i=0; iTerms and Condition
Please check this box to say you have read and understand out terms and conditions.',thetime); dontseubmit = 1; } else { unerrorfield('terms_span',thetime); } } if (!dontseubmit) { document.form1.action=location+'?new_user_signup=1'; document.form1.submit(); } } function errorfield(elm,msg,thetime) { document.getElementById(elm).style.borderWidth = '3px'; document.getElementById(elm).style.borderStyle = 'solid'; document.getElementById(elm).style.borderColor = 'red'; document.getElementById(elm).onmouseover = function(){tooltip.show(msg);}; document.getElementById(elm).onmouseout = function(){tooltip.hide();}; } function unerrorfield(elm,thetime) { document.getElementById(elm).style.borderWidth = ''; document.getElementById(elm).style.borderStyle = ''; document.getElementById(elm).style.borderColor = ''; document.getElementById(elm).onmouseover = function(){}; document.getElementById(elm).onmouseout = function(){}; } function log_in_checkout() { var dontseubmit =''; var emailfilter = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/; day = new Date(); thetime = day.getTime(); if (!document.getElementById('login_email').value) { errorfield('login_email','Your Email
Please enter your email address into this box.',thetime); dontseubmit = 1; } else if (!emailfilter.test(document.getElementById('login_email').value)) { errorfield('login_email','Your Email
Please enter a valid email address.',thetime); dontseubmit = 1; } else { unerrorfield('login_email',thetime); } if (!document.getElementById('login_password').value) { errorfield('login_password','Your Password
Please enter your password into this box.',thetime); dontseubmit = 1; } else { unerrorfield('login_password',thetime); } if (!dontseubmit) { document.form2.action=location+'?login_user=1'; document.form2.submit(); } } function forgot_pass_checkout() { var dontseubmit =''; var emailfilter = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/; day = new Date(); thetime = day.getTime(); if (!document.getElementById('login_email').value) { errorfield('login_email','Your Email
Please enter your email address into this box.',thetime); dontseubmit = 1; } else if (!emailfilter.test(document.getElementById('login_email').value)) { errorfield('login_email','Your Email
Please enter a valid email address.',thetime); dontseubmit = 1; } else { unerrorfield('login_email',thetime); } if (!dontseubmit) { document.form2.action=location+'?forgot_pass=1'; document.form2.submit(); } } function check_for_errors() { var other_emls = document.getElementById('set_error').value.split("|"); day = new Date(); thetime = day.getTime(); for (i=0; iYour Name
Please enter your name into this box.',thetime); dontseubmit = 1; } else { unerrorfield('signup_name',thetime); } if (!document.getElementById('signup_email').value) { errorfield('signup_email','Your Email
Please enter your email address into this box.',thetime); dontseubmit = 1; } else if (!emailfilter.test(document.getElementById('signup_email').value)) { errorfield('signup_email','Your Email
Please enter a valid email address.',thetime); dontseubmit = 1; } else { unerrorfield('signup_email',thetime); } var other_emls = document.getElementById('new_error').value.split("|"); for (i=0; iTerms and Condition
Please check this box to say you have read and understand out terms and conditions.',thetime); dontseubmit = 1; } else { unerrorfield('terms_span',thetime); } } if (!dontseubmit) { document.form1.action=location+'?new_user_signup=1&paytype=SecureTrading'; document.form1.submit(); } } function paypal_sub() { var dontseubmit =''; var emailfilter = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/; day = new Date(); thetime = day.getTime(); if (!document.getElementById('signup_name').value) { errorfield('signup_name','Your Name
Please enter your name into this box.',thetime); dontseubmit = 1; } else { unerrorfield('signup_name',thetime); } if (!document.getElementById('signup_email').value) { errorfield('signup_email','Your Email
Please enter your email address into this box.',thetime); dontseubmit = 1; } else if (!emailfilter.test(document.getElementById('signup_email').value)) { errorfield('signup_email','Your Email
Please enter a valid email address.',thetime); dontseubmit = 1; } else { unerrorfield('signup_email',thetime); } var other_emls = document.getElementById('new_error').value.split("|"); for (i=0; iTerms and Condition
Please check this box to say you have read and understand out terms and conditions.',thetime); dontseubmit = 1; } else { unerrorfield('terms_span',thetime); } } if (!dontseubmit) { document.form1.action=location+'?new_user_signup=1&paytype=Paypal'; document.form1.submit(); } }