function element_left(el){
	var et = 0;
	while(el){
		et += el.offsetLeft;
		el = el.offsetParent;
	}
	return et;
}

function element_top(el){
	var et = 0;
	while(el){
		et += el.offsetTop;
		el = el.offsetParent;
	}
	return et;
}

function check_mail(str){
	emailEx1 = /[^@]+@[A-Za-z0-9_-]+.[A-Za-z]+/;
	emailEx2 = /[^@]+@[A-Za-z0-9_-]+.[A-Za-z0-9_-]+.[A-Za-z]+/;
	emailEx3 = /[^@]+@[A-Za-z0-9_-]+.[A-Za-z0-9_-]+.[A-Za-z0-9_-]+.[A-Za-z]+/;
	
	if(emailEx1.test(str)) return true;;
	if(emailEx2.test(str)) return true;
	if(emailEx3.test(str)) return true;
	
	return false;
}

function contactus()
{
	var popup = window.open("/company/contactus.asp","contactus","width=410,height=460,scrollbars=no,toolbars=no;");
	popup.focus();
}

function viewTerms()
{
	var popup = window.open("/company/terms.asp","terms","width=500,height=460,scrollbars=yes,toolbars=no;");
	popup.focus();
}

function help_cvv()
{
	var popup = window.open("/shop/info_cvv.asp","terms","width=500,height=460,scrollbars=yes,toolbars=no;");
	popup.focus();
}


function eliux()
{
	var popup = window.open("/support/Eilux.html","eliux","width=660,height=550,scrollbars=yes,toolbars=no;");
	popup.focus();
}

function eliuxuse()
{
	var popup = window.open("/support/howtouse.html","eliux","width=640,height=360,scrollbars=yes,toolbars=no;");
	popup.focus();
}