function addfavorite()
{
		switch(getOs())
		{
		case 1:
		window.external.addFavorite(window.location.href,'Apparel Packaging Supplier [www.QinSen.com]');
		break;
		case 2:
		window.sidebar.addPanel('Apparel Packaging Supplier [www.QinSen.com]',window.location.href, "");
		break;									   
		}
}

function getOs(){
		if(navigator.userAgent.indexOf("MSIE")>0)
		return 1;
		if(isFirefox=navigator.userAgent.indexOf("Firefox")>0)
		return 2;								 
		return 0;
}

function Check2(theForm)
{
if(theForm.name.value=="")
{
	alert("Sorry,fill in the name!");
	theForm.name.focus();
	return false;
}

if (theForm.email.value=="") {
	alert("Sorry,fill in the email!");
	theForm.email.focus();
	return false;
}

var emailPat=/^(.+)@(.+)$/;
var matchArray=theForm.email.value.match(emailPat);
if (matchArray==null) {
	alert("Sorry,fill in the email!");
	theForm.email.focus();
	return false;
}

if(theForm.selCountry.value=="NA")
{
	alert("Sorry,fill in the Country!");
	theForm.selCountry.focus();
	return false;
}

if(theForm.body.value=="")
{
	alert("Sorry,fill in the content!");
	theForm.body.focus();
	return false
}

	return true;
}