/* 




		Development and maintain by www.Ec2biz.com
		
		Tel : (852) 2278 0280



		
*/
<!-- Begin
var numLists = 1;

function doCheckCount(ccObj)
{
	if(ccObj.checked)
		numLists = numLists + 1;
	else
		numLists = numLists - 1;
}

function CheckSS()
{
	theFrm = document.frmSS;

	hasDot = theFrm.Email.value.indexOf(".");
	hasAt = theFrm.Email.value.indexOf("@");

	if(hasDot + hasAt < 0)
	{
		alert("Please enter a valid email address.");
		theFrm.Email.focus();
		theFrm.Email.select();
		return false;
	}

	if(numLists == 0)
	{
		alert("Please choose a mailing list to subscribe to.");
		return false;
	}
	
	
	return true;
}

function CheckunSS()
{
	theFrm = document.frmunSS;

	hasDot = theFrm.Email.value.indexOf(".");
	hasAt = theFrm.Email.value.indexOf("@");

	if(hasDot + hasAt < 0)
	{
		alert("Please enter a valid email address.");
		theFrm.Email.focus();
		theFrm.Email.select();
		return false;
	}

	if(numLists == 0)
	{
		alert("Please choose a mailing list to unsubscribe from.");
		return false;
	}

	return true;
}

function createTarget(t){
window.open("", t, "width=300,height=250,toolbar=no,menubar=no,scrollbars=no");
return false;
}

function clearText(thefield){
if (thefield.defaultValue==thefield.value)
thefield.value = ""
}

var highlightcolor="yellow"

var ns6=document.getElementById&&!document.all
var previous=''
var eventobj

//Regular expression to highlight only form elements
var intended=/INPUT|TEXTAREA|SELECT|OPTION/

//Function to check whether element clicked is form element
function checkel(which){
if (which.style&&intended.test(which.tagName)){
if (ns6&&eventobj.nodeType==3)
eventobj=eventobj.parentNode.parentNode
return true
}
else
return false
}

//Function to highlight form element
function highlight(e){
eventobj=ns6? e.target : event.srcElement
if (previous!=''){
if (checkel(previous))
previous.style.backgroundColor=''
previous=eventobj
if (checkel(eventobj))
eventobj.style.backgroundColor=highlightcolor
}
else{
if (checkel(eventobj))
eventobj.style.backgroundColor=highlightcolor
previous=eventobj
}
}

function rowOverEffect(object) {
  if (object.className == 'catalogRow') object.className = 'catalogRowOver';
}

function rowOutEffect(object) {
  if (object.className == 'catalogRowOver') object.className = 'catalogRow';
}

function couponpopupWindow(url) {
  window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width=450,height=500,screenX=150,screenY=150,top=50,left=150')
}

function sslpopupWindow(url) {
  window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width=450,height=600,screenX=150,screenY=150,top=50,left=150')
}

function mouseOver(name)
{
    document[name].src = "images/products/icons/" + name + "_on.gif";
}

function mouseOut(name)
{
    document[name].src = "images/products/icons/" + name + ".gif";
}
//-->

