var google = new Array();
var docloc = location.href;
var google = docloc.split ("?");
currDate = new Date;
expireDate = new Date;
resetDate = new Date;
expireDate.setMonth(expireDate.getMonth()+12);
resetDate.setMonth(resetDate.getMonth()-1);
function resetCookie(cookieName) {
	document.cookie = cookieName + "=;expires=" + resetDate.toGMTString();
}


function homepage (){


<!-- Begin
// If it's Internet Explorer, use automatic link
// Be sure to change the "http://www.marsvenus.com/newsite\"
// to the URL you want them to bookmark.
if (document.all){
  document.write('<A HREF="javascript:history.go(0);" onClick="this.style.behavior=\'url(#default#homepage)\';this.setHomePage(\'http://www.marsvenus.com/newsite\');">');
  document.write('<b>Make us your home page</b>');
}


// If it's Netscape 6, tell user to drag link onto Home button
// Be sure to change the "http://www.YourWebSiteHere.com\"
// to the URL you want them to bookmark.
else if (document.getElementById){
  document.write('<a href="http://www.marsvenus.com/newsite">Drag this link onto your Home button to make this your Home Page.</a>');
}


// If it's Netscape 4 or lower, give instructions to set Home Page
else if (document.layers){
  document.write('<b>Make this site your home page:</b><br>- Go to <b>Preferences</b> in the <B>Edit</B> Menu.<br>- Choose <b>Navigator</b> from the list on the left.<br>- Click on the <b>"Use Current Page"</b> button.');
}


// If it's any other browser, for which I don't know the specifications of home paging, display instructions
else {
  document.write('<b>Make this site your home page:</b><br>- Go to <b>Preferences</b> in the <B>Edit</B> Menu.<br>- Choose <b>Navigator</b> from the list on the left.<br>- Click on the <b>"Use Current Page"</b> button.');
}
//  End -->
}


function setCookie(cookieName,cookieValue){
	
	document.cookie = cookieName + "=" + cookieValue + ";expires=" + expireDate.toGMTString();
}


function readCookie() {
	thisCookie = document.cookie.split("; ");
			for (i=0; i<thisCookie.length; i++) {
				cookieValues[i]=thisCookie[i].split("=")[1];
			}
	return cookieValues;
}
//session cookie
// name - name of the cookie
// value - value of the cookie
// [expires] - expiration date of the cookie (defaults to end of current session)
// [path] - path for which the cookie is valid (defaults to path of calling document)
// [domain] - domain for which the cookie is valid (defaults to domain of calling document)
// [secure] - Boolean value indicating if the cookie transmission requires a secure transmission
// * an argument defaults when it is assigned null as a placeholder
// * a null placeholder is not required for trailing omitted arguments
function setSCookie(name, value, expires, path, domain, secure) {
  var curCookie = name + "=" + escape(value) +
      ((expires) ? "; expires=" + expires.toGMTString() : "") +
      ((path) ? "; path=" + path : "") +
      ((domain) ? "; domain=" + domain : "") +
      ((secure) ? "; secure" : "");
  document.cookie = curCookie;
}



// name - name of the desired cookie
// * return string containing value of specified cookie or null if cookie does not exist
function getCookie(name) {
  var dc = document.cookie;
  var prefix = name + "=";
  var begin = dc.indexOf("; " + prefix);

  if (begin == -1) {
    begin = dc.indexOf(prefix);
    if (begin != 0) return null;
  } else
    begin += 2;
  var end = document.cookie.indexOf(";", begin);
  if (end == -1)
    end = dc.length;
  return unescape(dc.substring(begin + prefix.length, end));
}






var pageurl="http://www.marsvenus.com/newsite";
var pagetitle="John Gray's Mars Venus, LLC";



function addpagebookmark(){
	var ver = navigator.appName;
	var version = navigator.appVersion;
	var num = parseInt(navigator.appVersion);


	if ((ver == "Microsoft Internet Explorer") && (num >= 4) && (version.indexOf('PPC') == -1)) {
		window.external.AddFavorite(pageurl,pagetitle);
	}
	else if ((version.indexOf('PPC') > -1) || (version.indexOf('Mac') > -1)) {
		alert ("To add John Gray's Mars Venus to your list of bookmarks, please press Command-D.");
	}
	else {
		alert ("To add John Gray's Mars Venus to your list of bookmarks, please press control-D.");
	} 


}


function RelocateUrl(s) {       
	var d = s.options[s.selectedIndex].value;
	var formName = s.form.name;
    var inputName = s.name;
    
	if (d != "")
	{
    	document.location = d;
    }
    else {
    
    	document[formName][inputName].options[0].selected = 1;
    	return false;
	}
    
}


function QbDcTEST(s) {       
	var d = s.options[s.selectedIndex].value;
	var formName = s.form.name;
    var inputName = s.name;
    
	if (d != "")
	{
    	document[formName].submit();
    }
    else {
    
    	document[formName][inputName].options[0].selected = 1;
    	return false;
	}
}
function MM_goToURL() { //v3.0
  var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
 for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}


function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}


function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}


function MM_findObj(n, d) { //v3.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); return x;
}


function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}



