
function showpopup(action){
	if(action != 'nopopup'){
		//alert("de sam");
		//window.open('launch.asp','Launch','fullscreen=no,toolbar=no,status=no,menubar=no,scrollbars=no,resizable=no,directories=no,location=no, width=450,height=200,left=275,top=250');
	}
}

function openAffiliate(mnfID) {
		newwindow = window.open(HostUrl + 'launch.aspx?mnfID='+mnfID,'mnfWindow','fullscreen=no,toolbar=no,status=no,menubar=no,scrollbars=yes,resizable=yes,directories=no,location=no, width=800,height=600,left=175,top=150');
		if (window.focus) {newwindow.focus()}
}

function startQuote() {
		newwindow = window.open(HostUrl + 'RequestQuote.aspx','quoteWindow','status=no,fullscreen=no,toolbar=no,status=no,menubar=no,scrollbars=yes,resizable=yes,directories=no,location=no, width=475,height=625,left=175,top=150');
		if (window.focus) {newwindow.focus()}
}

function showPrivacyPopUp() {
		newwindow = window.open(HostUrl + 'Privacy.aspx','privacyWindow','fullscreen=no,toolbar=no,status=no,menubar=no,scrollbars=yes,resizable=yes,directories=no,location=no, width=475,height=625,left=75,top=150');
		if (window.focus) {newwindow.focus()}
}


function showException() {
		newwindow = window.open(HostUrl + 'ExceptionViewer.aspx','ExceptionWindow','fullscreen=no,toolbar=no,status=no,menubar=no,scrollbars=no,resizable=yes,directories=no,location=no, width=800,height=600,left=175,top=150');
		if (window.focus) {newwindow.focus()}
}



/*this function can be called by the onKeyDown event of a textbox, 
and will trigger a specific button to fire when enter key is pressed*/
function fnTrapKD(btn, event)
{
   try 
   {
      if (event.keyCode == 13)
      {
         event.returnValue=false;
         event.cancel = true;
         if ( btn )
         {
            if ( btn.setActive )
               btn.setActive();
            btn.click();
         }
      }
   }
   catch (er)
   {
   ;
   }
}//fnTrapKD
