var value;
var form;

function RadioBuyLink()
{
  	if (document.buy_form.buy1[0].checked)
	{
	  alert("1!");
	}
	else if (document.buy_form.buy1[1].checked)
	{
	  alert("2!!");
	}
	else
	{
	  alert("3!!?");
	}
	//window.location = 'http://www.yourdomain.com'
}

function openRefund()
{
  Refund=window.open("http://winferno.com/refund_policy.aspx","Refund","'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=640,height=480'");
}

function screenShot(image, name, width, height)
{
  var attributes = "toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=" + width + ",height=" + height;
  ScreenShot=window.open(image, name, attributes);
}

function writeDate()
{
  days = new Array(7);
  days[0] = "Sunday";
  days[1] = "Monday";
  days[2] = "Tuesday";
  days[3] = "Wednesday";
  days[4] = "Thursday";
  days[5] = "Friday";
  days[6] = "Saturday";
  months = new Array(12);
  months[0] = "January";
  months[1] = "February";
  months[2] = "March";
  months[3] = "April";
  months[4] = "May";
  months[5] = "June";
  months[6] = "July";
  months[7] = "August";
  months[8] = "September";
  months[9] = "October";
  months[10] = "November";
  months[11] = "December";
  today = new Date();
  day = days[today.getDay()];
  month = months[today.getMonth()];
  date = today.getDate();
  year=today.getYear();
  if (year < 2000)
    year = year + 1900;
  document.write (day + ", " + month + " " + date + ", " + year);
}

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];
    }
  }
}


// Script Source: CodeLifter.com - Copyright 2003 - Do not remove this notice.

// Set the horizontal and vertical position for the popup
PositionX = 100;
PositionY = 100;

// Set these value approximately 20 pixels greater than the size of the largest image to be used (needed for Netscape)
defaultWidth  = 500;
defaultHeight = 500;

// Set autoclose true to have the window close automatically
// Set autoclose false to allow multiple popup windows
var AutoClose = true;

// ================================
if (parseInt(navigator.appVersion.charAt(0))>=4)
{
  var isNN=(navigator.appName=="Netscape")?1:0;
  var isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;}
  var optNN='scrollbars=no,width='+defaultWidth+',height='+defaultHeight+',left='+PositionX+',top='+PositionY;
  var optIE='scrollbars=no,width=480,height=360,left='+PositionX+',top='+PositionY;

  function popImage(imageURL,imageTitle)
  {
    if (isNN){imgWin=window.open('about:blank','',optNN);}

    if (isIE){imgWin=window.open('about:blank','',optIE);}

    with (imgWin.document){
    writeln('<html><head><title>Loading...</title><style>body{margin:0px;}</style>');writeln('<sc'+'ript>');
    writeln('var isNN,isIE;');writeln('if (parseInt(navigator.appVersion.charAt(0))>=4){');
    writeln('isNN=(navigator.appName=="Netscape")?1:0;');writeln('isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;}');
    writeln('function reSizeToImage(){');writeln('if (isIE){');writeln('window.resizeTo(100,100);');
    writeln('width=100-(document.body.clientWidth-document.images[0].width);');
    writeln('height=100-(document.body.clientHeight-document.images[0].height);');
    writeln('window.resizeTo(width,height);}');writeln('if (isNN){');
    writeln('window.innerWidth=document.images["myImage"].width;');writeln('window.innerHeight=document.images["myImage"].height;}}');
    writeln('function doTitle(){document.title="'+imageTitle+'";}');writeln('</sc'+'ript>');

    if (!AutoClose) writeln('</head><body bgcolor=#FFFFFF scroll="no" onload="reSizeToImage();doTitle();self.focus()">')
    else writeln('</head><body bgcolor=#FFFFFF scroll="no" onload="reSizeToImage();doTitle();self.focus()" onblur="self.close()">');

    writeln('<a href="Javascript:Window.Close();"><img name="myImage" src='+imageURL+' style="display:block;"></a></body></html>');

    close();
  }
}


    var layer_ref;
    var temp;
    var state = 'hidden';

	function show(layer_ref)
	{
	  state = 'visible';

	  if (document.all)  //Internet Explorer
	  {
		eval( "document.all." + layer_ref + ".style.visibility = state");
	  }

	  if (document.layers)  //Netscape or Mozilla
	  {
		document.layers[layer_ref].visibility = state;
	  }

	  if (document.getElementById && !document.all)
	  {
		temp = document.getElementById(layer_ref);
		temp.style.visibility = state;
	  }
	}

	function hide(layer_ref)
	{
	  state = 'hidden';

	  if (document.all)  //Internet Explorer
	  {
		eval( "document.all." + layer_ref + ".style.visibility = state");
	  }

	  if (document.layers)  //Netscape or Mozilla
	  {
		document.layers[layer_ref].visibility = state;
	  }

	  if (document.getElementById && !document.all)
	  {
		temp = document.getElementById(layer_ref);
		temp.style.visibility = state;
	  }
	}