function Openwebsite(url, websitename, msgcode,windowSize)
{
	var msg;
	var settingStr;
	
	// handle extra http://
	url = url.replace(/http:\/\/http:\/\//gi, "http://");
	
	switch (windowSize)
	{
	case 0: //Normal Window
		settingStr = "";
		break;
	case 1:  //Alliance program popups
		//settingStr = "height=600, width=650,scrollbars=1";
		settingStr = "menubar=no,height=530,width=450,toolbar=0,resizable=1,scrollbars=1"
		break;
		
	case 2: //external website popups
		settingStr = "height=600, width=780, scrollbars=1,resizable=1,menubar=1,toolbar=1";
		break;
	case 3:
		settingStr = "hscrollbars=yes,height=475,width=400";
		break;
	case 4:  // printable version popup
		settingStr = "scrollbars=yes,height=600,width=640,toolbar=yes"
		break;
	case 5:  // Other type popup with popup heading
		settingStr = "scrollbars=yes,height=425,width=560,toolbar=yes"
		break;
	default :
		settingStr = windowSize;
		break;
	}

	switch (msgcode)
	{
	case 0: //no message
		msg = "";
		break;
	case 1: //short message
		msg = "You will now be taken to the external " + websitename + " website. Intel does not control the content of the destination website.";
		break;
	case 2: //long message
		msg = "This link will take you to an external website. Intel does not own or control the contents of such external websites.";
		break;
	}

	if (msg != "")
	{
	if (confirm(msg))
	   {
		if (settingStr != "")
		{
		window.open(url, "",  settingStr);
		}
		else
		{
		window.open(url);
		}
	   }
	}
	else
	{
	  if (settingStr != "")
	     {
		window.open(url, "",  settingStr);
		}
		else
		{
		window.open(url);
	     }
	}
}
