// JavaScript Document
var addthis_pub = 'ScottSinger';
var addthis_logo = 'http://www.ushopwireless.com/wireless/images/logos/ushopwireless.jpg';
var addthis_logo_background = '026dbf';
var addthis_logo_color = 'ffffff';
var addthis_brand = 'Ushop Wirless';
function adds_DoFSCommand(command, args) {
  if (command == "favorites") {
    //window.external.AddFavorite(top.location.href, top.document.title);
	addthis_url = location.href; addthis_title = document.title; return addthis_sendto();
	MM_openBrWindow('http://www.addthis.com/bookmark.php','bookmark','scrollbars=no,resizable=no,width=500,height=500');
  }
  if (command == "coverage") {
  	if(!args) args = "http://coverage.t-mobile.com/default.aspx";
	MM_openBrWindow(args,'coverage','scrollbars=yes,resizable=yes,width=600,height=600');  
  }
  if (command == "link") {
	 Page_ShowPopOnExit=false;
	 window.location.href = args;  
  }
}
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
// Hook for Internet Explorer.
if (navigator.appName && navigator.appName.indexOf("Microsoft") != -1 && navigator.userAgent.indexOf("Windows") != -1 && navigator.userAgent.indexOf("Windows 3.1") == -1) {
	document.write('<script language=\"VBScript\"\>\n');
	document.write('On Error Resume Next\n');
	document.write('Sub adds_FSCommand(ByVal command, ByVal args)\n');
	document.write('	Call adds_DoFSCommand(command, args)\n');
	document.write('End Sub\n');
	document.write('</script\>\n');
}

function check_mail() {
	 var filter  = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
	 if(!filter.test(document.getElementById('email').value)) {
		document.getElementById('email_warning').style.display=""; 
		document.getElementById('email_warning').innerHTML = "Please Enter a Valid Email (xxx@xxx.xx).";
		document.getElementById('email').value = "";
	 } else {
		 document.getElementById('email_warning').style.display="none"; 
		 document.getElementById('email_warning').innerHTML = "";
	 }
}