// JavaScript Document

function print_coupon(name) {
	//var holder = document.getElementsByTagName("a").name;
	var name = name;
	var address= "http://working.tropicaltraveller.com/includes/coupon.inc.php";
	var coupon = window.open(address, "Your FREE Coupon", "resizable=no, width=512, height = 700");
	coupon.focus();
	coupon.document.write('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">');
coupon.document.write('<html xmlns="http://www.w3.org/1999/xhtml">');
coupon.document.write('<head>');
coupon.document.write('<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />');
coupon.document.write('<title>Your FREE Coupon from Tropical Traveller</title>');
coupon.document.write('<link rel="stylesheet" type="text/css" href="../stylesheets/coupon_popup.css" />');
coupon.document.write('</head>');
coupon.document.write('<body>');
coupon.document.write('<span id="print_link"><a href="#" onClick="coupon.window.print()">click here to print this coupon</a></span>');
coupon.document.write('<img src="http://working.tropicaltraveller.com/images/coupons/'+name+'" alt="" id="coupon"/>');
coupon.document.write('</body></html>');
coupon.document.close();

	
	return false;
	
}


function play_video (name) {
	var name = name;
	var address = "http://tropicaltraveller.com/video.php";
	var coupon = window.open(address, "Watch Our Video", "resizable=no, width = 640, height = 427");
}
function read_magazine(name) {
		var name = name;
		var address = "http://working.tropicaltraveller.com/includes/"+name+".inc.php";
		var magazine = window.open(address, "Get A Glimpse Inside!", "resizable=no, width=1000 , height =698 ");
		
}
function contact_us_email(name) {
	try {var name= name;
	window.document.getElementById("contact_us_form").style.visibility='visible';
	window.document.getElementById("contact").value=name;
	for(initAll; onClick(); name++)
	window.document.getElementsByName("name").style.color='#F90';
	}
	catch(err) {
		txt="this is an error";	
	}
}

