function writeTag(tag) {
	var browserName=navigator.appName; 
	/*if (browserName=="Netscape")
	{ 
	  document.write('<br/><br/>');
	}
	 else*/ if (!(browserName=="Microsoft Internet Explorer"))
	{ 
		document.write(tag);
	}			

}

function checkNewsletterValid(text){
	val = document.subscribeform.email.value;
	// Return false if e-mail field does not contain a '@' and '.' .
   if (val.indexOf ('@',0) == -1 ||
	   val.indexOf ('.',0) == -1)    {
	   alert(text);
	   document.subscribeform.email.focus();
		return false;
		
   } 
		return true;
   
}

function showBox(event, id){
//alert(userid);
	x = event.clientX;
    y = event.clientY;
	
	var obj = document.getElementById(id);
	
	//obj.style.top = y +3 ;
	obj.style.left = x + 15;
	
	obj.style.width = 200;
	obj.style.height = "auto";
	//obj.innerHTML += "<br/>"+ x +" : " + y;
	obj.style.display = 'block';	
}

function hideBox(id){
	document.getElementById(id).style.display = "none";
}

function show_hide_tag(tag_id){ 
	if(document.getElementById(tag_id).style.display != 'none'){
		document.getElementById(tag_id).style.display = 'none';
		
	}else document.getElementById(tag_id).style.display = 'block'
}


