function OpenContactWindow()
{
// http://localhost/ASWP/
	window.open('Contact.aspx','Contact','width=500,height=600,scrollbars=no,resizable=no');
}

function OpenCopyrightWindow()
{
//	window.open('http://localhost/ASWP/Copyright.htm','Copyright','width=500,height=600,scrollbars=yes,resizable=no');
	window.open('Copyright.htm','Copyright','width=500,height=600,scrollbars=yes,resizable=no');
}

function OpenProductInfoWindow()
{
//	window.open('http://localhost/ASWP/ProductInfo.htm','ProductInfo','width=500,height=600,scrollbars=yes,resizable=no');
	window.open('ProductInfo.htm','ProductInfo','width=500,height=600,scrollbars=yes,resizable=no');
}

function OpenInfoWindow(InfoDoc)
{
	var url;
	url = 'Info.aspx?IFD=' + InfoDoc
	window.open(url,'Info','width=500,height=600,scrollbars=yes,resizable=no');
}

function OpenInfoWindowTest(InfoDoc)
{
	var url;
	url = '../Info.aspx?IFD=' + InfoDoc
	window.open(url,'Info','width=500,height=600,scrollbars=yes,resizable=yes');
}

function OpenTestModule(InfoDoc)
{
	var url;
	url = '../Info.aspx?IFD=' + InfoDoc
	window.open(url,'Info','width=500,height=600,scrollbars=yes,resizable=yes');
}


function OpenCertDetails()
{
	thewindow = window.open('https://www.thawte.com/cgi/server/certdetails.exe?code=USASIT3', 'anew', config='height=580,width=515,toolbar=no,menubar=no,scrollbars=yes,resizable=no,location=no,directories=no,status=yes');
}


var doImage = doImage;
var TType = TType;

function mhHover(tbl, idx, cls)
{
	var t, d;
	if (document.getElementById)
		t = document.getElementById(tbl);
	else
		t = document.all(tbl);
	if (t == null) return;
	if (t.getElementsByTagName)
		d = t.getElementsByTagName("TD");
	else
		d = t.all.tags("TD");
	if (d == null) return;
	if (d.length <= idx) return;
	d[idx].className = cls;
}

function setMSResearch() {
  var time = new Date();
  if( document.cookie.indexOf( 'msresearch=1 ') == -1 ) {
    document.cookie = 'msresearch=' + time.getTime() + ':' + escape( document.location) + ':' + escape( document.referrer) + '; path=/; domain=.microsoft.com; ';
  }
}

function footerjs(doc)
{
	if (doImage == null)
	{
		var tt = TType == null ? "PV" : TType;
		doc.write('<layer visibility="hide"><div style="display:none"><img src="http://c.microsoft.com/trans_pixel.asp?source=www&TYPE=' + tt + '&p=windowsmobile_information_devprograms" width=0 height=0 hspace=0 vspace=0 border=0 /></div></layer>');
	}

	if( ( document.cookie.indexOf( 'msresearch=1 ') == -1 ) 
	 && ( document.cookie.indexOf( 'msresearch=')   != -1 ) ) {
	  setInterval( "setMSResearch()", 1000 );
	}
}


if (self.name == "MNPMainFrame")
		top.location.href = self.location.href;

	var e = 0;
	var first = "";
	function SetFirst(sName)
	{
		if (first == "")
			first = sName;
	}
	
	
	
	
	
	
//PART @ ===================================================================================================
//                                 =========================================================================
//                                 =========================================================================
	
	
var a = b = c = d = 0;
   var e = e;
   var time = addr = "";
   var surveyFlag = surveyFlag;
   var fav = true
   
   function fnAddToFavs()
   {
      c++;
      SetFirst('3');
      fav = false;
      window.external.AddFavorite('http://www.paragontax.com', 'ParagonTax');
   }
   
   function DoPopup()
   {
      try
      {
		if (surveyFlag == null || surveyFlag == false)
		{
			if (Math.random() <= 0.0)
			{  
				if (GetCookie("cars") == null)
				{  
					SetCookie("cars", "1");
		            
					var retVal = window.showModalDialog("/library/mnp/2/aspx/surveypopup.aspx?locale=en-us","","dialogHeight: 290px; dialogWidth: 306px; dialogTop: px; dialogLeft: px; edge: Raised; center: Yes; help: No; resizable: No; scroll: No; status: No; unadorned: Yes; ");
					if (retVal != null)
					{
						if (retVal != false)
						{
							time = retVal.substring(0, retVal.indexOf(";"));
							addr =  retVal.substring(retVal.indexOf(";") + 1, retVal.length);
						}
					}
				}
			}
		}
      }
      catch (e)
      {
		//noop
      }
   }
   
   function GetCookie(sName)
   {
      //cookies are separated by semicolons
      var aCookie = document.cookie.split("; ");
      for (var i=0; i  < aCookie.length; i++)
      {
         // a name/value pair (a crumb) is separated by an equal sign
         var aCrumb = aCookie[i].split("=");
         if (sName == aCrumb[0]) 
			return unescape(aCrumb[1]);
      }

      // a cookie with the requested name does not exist
      return null;
   }

   
   function SetCookie(sName, sValue)
   {
      var date = new Date();
      date.setDate(date.getDate() + 90);
      document.cookie = sName + "=" + escape(sValue) + "; expires=" + date.toGMTString() + "; path=/; domain=microsoft.com";
   }
		