/*

function openWin(url, name) {
var l = openWin.arguments.length;
var w = "";
var h = "";
var features = "";

for (i=2; i<l; i++) {

var param = openWin.arguments[i];

if ( (parseInt(param) == 0) ||

(isNaN(parseInt(param))) ) {
 features += param + ',';
 } else {

(w == "") ? w = "width=" + param + "," :
 h = "height=" + param;

}
}

features += w + h;

var code = "popupWin = window.open(url, name";

 if (l > 2) code += ", '" + features;
code += "')";

eval(code);

}

function openpopup(){
var popurl="getie.htm"
winpops=window.open(popurl,"","width=300,height=150,")
}

function get_cookie(Name) {
  var search = Name + "="
  var returnvalue = "";
  if (document.cookie.length > 0) {
    offset = document.cookie.indexOf(search)
    if (offset != -1) { // if cookie exists
      offset += search.length
      // set index of beginning of value
      end = document.cookie.indexOf(";", offset);
      // set index of end of cookie value
      if (end == -1)
         end = document.cookie.length;
      returnvalue=unescape(document.cookie.substring(offset, end))
      }
   }
  return returnvalue;
}

function loadornot(){
if (get_cookie('poppedup')==''){
openpopup()
document.cookie="poppedup=yes"
}
}





/* This code is used to automatically route to a new page

   Not used?  

*/

function changePage (newPage)
	{
	var today = new Date();
	var expiry = new Date(today.getTime() + (365 * 24 * 60 * 60 * 1000));
	if (cookiesEnabled() == true)
		{
		setCookie("RhinoHome",newPage,expiry,"/",".rhino3d.com");
		}
	location.href = newPage;
	}

/* This code runs when the page opens and 
   redirects to the language or regional page
   selected previously by the user.
   
   Commented out for now.

if (cookiesEnabled() == true)
   {
	 var shref = getCookie("RhinoHome");
  	 if (shref)
     {
     if (shref.search(/rhino3d.com/i) != -1)
     	{
     	if (shref.search(/la.rhino3d.com/i) == -1)
     		{
     		if (shref.search(/cz.rhino3d.com/i) == -1)
     			{
         		location.href = shref;
         		}
         	}
     	}
     }
   }
   
   */
function email(emname,domain)
	{
	var email = "Mailto:"+emname + "@"+domain;
	document.location=email;
	}

