
//******* The following functions are use to send webpage message ********

function emailpage() {

//=========IT============IT================IT================
if (location.href == "http://itworldexpo.wowgao.com/")
{
	var subject="Check out this page";
	var message="Hi, I thought you might be interested in this page, ";
	var message1=", from WowGao, the world leading IT events organizer.";
}
else if (location.href == "http://itworldexpo.wowgao.com/register/conferenceregister.php")
{
	var subject="Check out this page";
	var message="Hi, I thought you might be interested in this page, "; 
	var message1=", from WowGao, the world leading IT events organizer.";
}
else if (location.href == "http://itworldexpo.wowgao.com/call_for_papers/")
{
	var subject="Check out this page";
	var message="Hi, I thought you might be interested in this page, "; 
	var message1=", from WowGao, the world leading IT events organizer.";
}
else if (location.href == "http://itworldexpo.wowgao.com/presentation_proposals/")
{
	var subject="Check out this page";
	var message="Hi, I thought you might be interested in this page, "; 
	var message1=", from WowGao, the world leading IT events organizer.";
}
else if (location.href == "http://itworldexpo.wowgao.com/agenda/")
{
	var subject="Conference Agenda for the 2004 IT WorldExpo";
	var message="I thought you might be interested in the conference agenda for the IT WorldExpo, the best and biggest global event on information technologies, e-enterprises, online businesses, e-entertainment, e-marketing, and IT management and business issues. You can view the detailed agenda, including topics and program overview at ";
}
else if (location.href ==" http://itworldexpo.wowgao.com/partners/")
{
	var subject= "Check out this page";
	var message="Hi, I thought you might be interested in this page, ";
	var message1=", from WowGao, the world leading IT events organizer.";
}

//=========EF================= EF ================EF=========

else if (location.href == "http://www.efworldexpo.wowgao.com/")
{
	var subject= "Check out this page";
	var message="Hi, I thought you might be interested in this page, "; 
	var message1=", from WowGao, the world leading IT events organizer.";
}

else if (location.href == "http://efworldexpo.wowgao.com/register/conferenceregister.php")
{
	var subject= "Check out this page";
	var message="Hi, I thought you might be interested in this page, "; 
	var message1=", from WowGao, the world leading IT events organizer.";
}


else if (location.href == "http://efworldexpo.wowgao.com/call_for_papers/")
{
	var subject= "Check out this page";
	var message="Hi, I thought you might be interested in this page, "; 
	var message1=", from WowGao, the world leading IT events organizer.";
}

else if (location.href == "http://efworldexpo.wowgao.com/presentation_proposals/")
{
	var subject= "Check out this page";
	var message="Hi, I thought you might be interested in this page, ";
	var message1=", from WowGao, the world leading IT events organizer.";
}

else if (location.href == "http://efworldexpo.wowgao.com/agenda/")
{
	var subject= "Conference Agenda for the 2004 e-Financial WorldExpo";
	var message="I thought you might be interested in the conference agenda for the e-Financial WorldExpo, the best and biggest global event on information technologies for banks, insurance companies, and other financial institutions. You can view the detailed agenda, including topics and program overview at "; 
}

else if (location.href == "http://efworldexpo.wowgao.com/partners/")
{
	var subject= "Check out this page";
	var message="Hi, I thought you might be interested in this page, ";
	var message1=", from WowGao, the world leading IT events organizer.";
}

//========WM===============WM================= WM ================

else if (location.href == "http://wmworldexpo.wowgao.com/")
{
	var subject= "Check out this page";
	var message="Hi, I thought you might be interested in this page, ";
	var message1=", from WowGao, the world leading IT events organizer.";
}
else if (location.href == "http://wmworldexpo.wowgao.com/register/conferenceregister.php")
{
	var subject= "Check out this page";
	var message="Hi, I thought you might be interested in this page, "; 
	var message1=", from WowGao, the world leading IT events organizer.";
}
else if (location.href == "http://wmworldexpo.wowgao.com/call_for_papers/")
{
	var subject= "Check out this page";
	var message="Hi, I thought you might be interested in this page, ";
	var message1=", from WowGao, the world leading IT events organizer.";
}
else if (location.href == "http://wmworldexpo.wowgao.com/presentation_proposals/")
{
	var subject= "Check out this page";
	var message="Hi, I thought you might be interested in this page, ";
	var message1=", from WowGao, the world leading IT events organizer.";
}
else if (location.href == "http://wmworldexpo.wowgao.com/agenda/")
{
	var subject= "Conference Agenda for the 2004 Wireless and Mobile WorldExpo";
	var message="I thought you might be interested in the conference agenda for the 2004 Wireless and Mobile WorldExpo, the best and biggest global event for mobile and wireless technologies and applications. You can view the detailed agenda, including topics and program overview at  "; 
}
else if (location.href == "http://wmworldexpo.wowgao.com/partners/")
{
	var subject= "Check out this page";
	var message= "Hi, I thought you might be interested in this page, ";
	var message1=", from WowGao, the world leading IT events organizer.";
}
else if (location.href.indexOf("worldexponews")>0)
{
	var subject= "Check out this page";
	var message= "Hi, I thought you might be interested in this page, ";
	var message1=", from WowGao, the world leading IT events organizer.";
}
else
{	
	var subject= "Check out this page";
	var message= "Hi, I thought you might be interested in this page, ";
	var message1=", from WowGao, the world leading IT events organizer.";
}


mail_str = "mailto:?subject=" + subject;
mail_str += "&body=" + message;
mail_str += location.href; 
mail_str += message1;
location.href = mail_str;

}


// This function is use to show or hide the email icon ///
// if explorer 
if (document.all) {
		layerRef='document.all';
		styleRef='.style.';
}
//else if netscape 
else if (document.layers) {
		layerRef='document.layers';
		styleRef='.';
	} 
else{
	//alert("Your IE not support script");
}

function hide_email(){
  if ((location.href.indexOf("worldexponews")>0)
	   || (location.href == "http://efworldexpo.wowgao.com/") 
	   || (location.href == "http://itworldexpo.wowgao.com/")
	   || (location.href == "http://wmworldexpo.wowgao.com/")
	   || (location.href.indexOf("call_for_papers")>0)
	   || (location.href.indexOf("presentation_proposals")>0)
	   || (location.href.indexOf("agenda")>0)
	   || (location.href.indexOf("partners")>0)
	   || (location.href.indexOf("conferenceregister.php")>0))
	{
		eval(layerRef+'["email_icon"]'+styleRef+'visibility="visible"');
		eval(layerRef+'["email_icon"]'+styleRef+'display="block"');
	}
  else {
		eval(layerRef+'["email_icon"]'+styleRef+'visibility="hidden"');
		eval(layerRef+'["email_icon"]'+styleRef+'display="none"');
  }
}

// This function is using to the top header email this page
function mailpage()
{ 
	mail_str = "mailto:?subject=" + document.title;
	mail_str += "&body=I thought you might be interested in the " + document.title;
	mail_str += ". You can view it at, " + location.href; 
	location.href = mail_str;
}

function emailthispage()
{   
    mail_str = "mailto:?Subject=2006 Government %26 Health Technologies Conference and Expo&body=" + location.href;
	location.href = mail_str;
}