// JavaScript Document

//alert('hi');

//$(document).ready(function(){
//Start JQuery Code
//if ($("body").attr("class") == "home") {
		//swfobject.embedSWF("/user-assets/flash/merkle_response_results.swf", "banner", "260", "276", "9.0.0", "/user-assets/flash/expressInstall.swf");
//		flashembed("featredStores", {   src:'http://nacdstestsite.wms.cdgsolutions.com/user-assets/flash/hpcampaign.swf', height:'381', width:'671', version:[8,0],   expressInstall:'/user-assets/flash/expressInstall.swf'});  }
		

//End JQuery Code
//});



function print_page(print_url, print_header)
{
 print_win=window.open("/wmsprint.cfm?print_url="+print_url+"&print_header="+print_header,"PrintWMSPage","toolbar=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,copyhistory=no,width=695,height=555");
 print_win.focus();	  	  
}

function print_appPage(strHeader) {
 print_win=window.open("/frame-templates/extAppPrint_template.cfm?print_header="+strHeader,"PrintWMSPage","toolbar=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,copyhistory=no,width=695,height=555");
 print_win.focus();	  
}

	 
function email_page(email_url)
{
 email_win=window.open("/frame-templates/email_template.cfm?email_url="+email_url,"EmailWMSPage","toolbar=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=500,height=480");
 email_win.focus();	
} 


function acceptTermsOfService() {	
 Set_Cookie('nacdsMemberTOSAgreement',true,365);  
 var pageID = findRefParm();
 if(Get_Cookie('nacdsMemberTOSAgreement')) {
  if(pageID) {
   window.location='/wmspage.cfm?parm1='+pageID; 	     
  }
  else {
   window.location='/'; 
  }
 }
 else {
  alert("To accept the terms of service you must have cookies enabled."); 
 }
 //Delete_Cookie('nacdsMemberTOSAgreement');
}