var defaultSite = "";
function Comments(site) {
	var height = "330";							// define the popup's height;
	var width = "480";							// define the popup's width;
	var top = (screen.availHeight-height)/2;	// define the popup's vertical position on screen;
	var left = (screen.availWidth-width)/2;		// define the popup's horizontal position on screen;
	site = (site) ? site : defaultSite;
	var send = window.open(site + "/common/shared/popup/sendcomments.aspx","comments","width="+width+",height="+height+",toolbar=no,scrollbars=no,status=no,resizable=no,top="+top+",left="+left);
	send.focus();
}

function Recommend(site) {
	if (screen.Width <= "800")
		var height = "450";							// define the popup's height for 800*600 resolution;
	else
		var height = "590";							// define the popup's height for >800*600 resolution;
	var width = "520";								// define the popup's width;
	var top = (screen.availHeight-height)/2;		// define the popup's vertical position on screen;
	var left = (screen.availWidth-width)/2;			// define the popup's horizontal position on screen;
	site = (site) ? site : defaultSite;
	var send = window.open(site + "/common/shared/popup/senddocument.aspx?typemessage=4","recommend","width="+width+",height="+ height +",toolbar=no,status=no,resizable=no,scrollbars=yes,top="+top+",left="+left);
	send.focus();
}

function ToCustomerSupport(site) {
	var cs = window.open("/contact-us.aspx","cs");
	cs.focus();
}

function TermsConditions() {
	overlayIframe("/common/shared/popup/termsconditions.aspx", 500, 580);
}

function TermsSales() {
    overlayIframe("/common/shared/popup/termssales.aspx", 500, 580);
}

function RecommendNL() {
	if (screen.Width <= "800")
		var height = "450";							// define the popup's height for 800*600 resolution;
	else
		var height = "590";							// define the popup's height for >800*600 resolution;
	var width = "520";								// define the popup's width;
	var top = (screen.availHeight-height)/2;		// define the popup's vertical position on screen;
	var left = (screen.availWidth-width)/2;			// define the popup's horizontal position on screen;
	var send = window.open("/common/shared/popup/senddocument.aspx?typemessage=3","newsletter","width="+width+",height=590,toolbar=no,scrollbars=yes,status=no,resizable=no,top="+top+",left="+left);
	send.focus();
}

function RecommendSDS(url, docType, docID) {
    overlayIframe(url + '?typemessage=' + docType + '&id=' + docID, 590, 400);
}

function RecommendTC(url, docType, docID) {
    overlayIframe(url + '?typemessage=' + docType + '&id=' + docID, 590, 400);
}

function RecommendTDS(url, docType, docID) {
    overlayIframe(url + '?typemessage=' + docType + '&id=' + docID, 590, 400);
}
