function addbookmark()

{

	var i = navigator.userAgent.indexOf("Netscape");

	if(i >= 0)

	{

		alert("Press Ctrl + D to Bookmark this Page");

	}

	else if (window.sidebar) // firefox

	{

		alert("Press Ctrl + D to bookmark");

	}

	else if(window.opera && window.print)

	{ // opera

		var elem = document.createElement('a');

		elem.setAttribute('href',"http://www.verseo.com");

		elem.setAttribute('title',document.title);

		elem.setAttribute('rel','sidebar');

		elem.click();

	} 

	else if(document.all)// ie

	{

		window.external.AddFavorite("http://www.verseo.com", 'www.verseo.com - ' + document.title);

	}

	else

	{

		alert("Press Ctrl + D to Bookmark this page");

	}

}


/*Script for Newsletter*/

function nvalidateEmail(email)

{

    var splitted = email.match("^(.+)@(.+)$");

    if(splitted == null) return false;

    if(splitted[1] != null )

    {

      var regexp_user=/^\"?[\w-_\.]*\"?$/;

      if(splitted[1].match(regexp_user) == null) return false;

    }

    if(splitted[2] != null)



    {

      var regexp_domain=/^[\w-\.]*\.[A-Za-z]{2,4}$/;

      if(splitted[2].match(regexp_domain) == null) 

      {

	    var regexp_ip =/^\[\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\]$/;

	    if(splitted[2].match(regexp_ip) == null) return false;

      }// if

      return true;

    }

return false;

}





function nvalidate() {



if (document.newsletter.semail.value.length==0) {

alert("please enter your email address");

document.newsletter.semail.focus();

return false;

}

if(!nvalidateEmail(document.newsletter.semail.value)) {

    

alert("please enter your valid email address");

document.newsletter.semail.focus();

return false; 

}

else document.newsletter.submit()

return true;

}

/**/

