﻿/************************************************************************************************************
*	DHTML modal dialog box
*
*	Created:						August, 26th, 2006
*	@class Purpose of class:		Display a modal dialog box on the screen.
*			
*	Css files used by this script:	modal-message.css
*
*	Demos of this class:			demo-modal-message-1.html
*
* 	Update log:
*
************************************************************************************************************/


/**
* @constructor
*/

DHTML_modalMessage = function()
{
	var url;								// url of modal message
	var htmlOfModalMessage;					// html of modal message
	
	var divs_transparentDiv;				// Transparent div covering page content
	var divs_content;						// Modal message div.
	var iframe;								// Iframe used in ie
	var layoutCss;							// Name of css file;
	var width;								// Width of message box
	var height;								// Height of message box
	
	var existingBodyOverFlowStyle;			// Existing body overflow css
	var dynContentObj;						// Reference to dynamic content object
	var cssClassOfMessageBox;				// Alternative css class of message box - in case you want a different appearance on one of them
	var shadowDivVisible;					// Shadow div visible ? 
	var shadowOffset; 						// X and Y offset of shadow(pixels from content box)
	var MSIE;
		
	this.url = '';							// Default url is blank
	this.htmlOfModalMessage = '';			// Default message is blank
	this.layoutCss = 'modal-message.css';	// Default CSS file
	this.height = 200;						// Default height of modal message
	this.width = 400;						// Default width of modal message
	this.cssClassOfMessageBox = false;		// Default alternative css class for the message box
	this.shadowDivVisible = true;			// Shadow div is visible by default
	this.shadowOffset = 5;					// Default shadow offset.
	this.MSIE = false;
	if(navigator.userAgent.indexOf('MSIE')>=0) this.MSIE = true;
	

}

DHTML_modalMessage.prototype = {
	// {{{ setSource(urlOfSource)
    /**
     *	Set source of the modal dialog box
     * 	
     *
     * @public	
     */		
	setSource : function(urlOfSource)
	{
		this.url = urlOfSource;
		
	}	
	// }}}	
	,
	// {{{ setHtmlContent(newHtmlContent)
    /**
     *	Setting static HTML content for the modal dialog box.
     * 	
     *	@param String newHtmlContent = Static HTML content of box
     *
     * @public	
     */		
	setHtmlContent : function(newHtmlContent)
	{
		this.htmlOfModalMessage = newHtmlContent;
		
	}
	// }}}		
	,
	// {{{ setSize(width,height)
    /**
     *	Set the size of the modal dialog box
     * 	
     *	@param int width = width of box
     *	@param int height = height of box
     *
     * @public	
     */		
	setSize : function(width,height)
	{
		if(width)this.width = width;
		if(height)this.height = height;		
	}
	// }}}		
	,		
	// {{{ setCssClassMessageBox(newCssClass)
    /**
     *	Assign the message box to a new css class.(in case you wants a different appearance on one of them)
     * 	
     *	@param String newCssClass = Name of new css class (Pass false if you want to change back to default)
     *
     * @public	
     */		
	setCssClassMessageBox : function(newCssClass)
	{
		this.cssClassOfMessageBox = newCssClass;
		if(this.divs_content){
			if(this.cssClassOfMessageBox)
				this.divs_content.className=this.cssClassOfMessageBox;
			else
				this.divs_content.className='modalDialog_contentDiv';	
		}
					
	}
	// }}}		
	,	
	// {{{ setShadowOffset(newShadowOffset)
    /**
     *	Specify the size of shadow
     * 	
     *	@param Int newShadowOffset = Offset of shadow div(in pixels from message box - x and y)
     *
     * @public	
     */		
	setShadowOffset : function(newShadowOffset)
	{
		this.shadowOffset = newShadowOffset
					
	}
	// }}}		
	,	
	// {{{ display()
    /**
     *	Display the modal dialog box
     * 	
     *
     * @public	
     */		
	display : function()
	{
		if(!this.divs_transparentDiv){
			this.__createDivs();
		}	
		
		// Redisplaying divs
		this.divs_transparentDiv.style.display='block';
		this.divs_content.style.display='block';
		this.divs_shadow.style.display='block';		
		if(this.MSIE)this.iframe.style.display='block';	
		this.__resizeDivs();
		
		/* Call the __resizeDivs method twice in case the css file has changed. The first execution of this method may not catch these changes */
		window.refToThisModalBoxObj = this;		
		setTimeout('window.refToThisModalBoxObj.__resizeDivs()',150);
		
		this.__insertContent();	// Calling method which inserts content into the message div.
	}
	// }}}		
	,
	// {{{ ()
    /**
     *	Display the modal dialog box
     * 	
     *
     * @public	
     */		
	setShadowDivVisible : function(visible)
	{
		this.shadowDivVisible = visible;
	}
	// }}}	
	,
	// {{{ close()
    /**
     *	Close the modal dialog box
     * 	
     *
     * @public	
     */		
	close : function()
	{
		//document.documentElement.style.overflow = '';	// Setting the CSS overflow attribute of the <html> tag back to default.
		
		/* Hiding divs */
		this.divs_transparentDiv.style.display='none';
		this.divs_content.style.display='none';
		this.divs_shadow.style.display='none';
		if(this.MSIE)this.iframe.style.display='none';
		
	}	
	// }}}	
	,
	// {{{ __addEvent()
    /**
     *	Add event
     * 	
     *
     * @private	
     */		
	addEvent : function(whichObject,eventType,functionName,suffix)
	{ 
	  if(!suffix)suffix = '';
	  if(whichObject.attachEvent){ 
	    whichObject['e'+eventType+functionName+suffix] = functionName; 
	    whichObject[eventType+functionName+suffix] = function(){whichObject['e'+eventType+functionName+suffix]( window.event );} 
	    whichObject.attachEvent( 'on'+eventType, whichObject[eventType+functionName+suffix] ); 
	  } else 
	    whichObject.addEventListener(eventType,functionName,false); 	    
	} 
	// }}}	
	,
	// {{{ __createDivs()
    /**
     *	Create the divs for the modal dialog box
     * 	
     *
     * @private	
     */		
	__createDivs : function()
	{
		// Creating transparent div
		this.divs_transparentDiv = document.createElement('DIV');
		this.divs_transparentDiv.className='modalDialog_transparentDivs';
		this.divs_transparentDiv.style.left = '0px';
		this.divs_transparentDiv.style.top = '0px';
		
		document.body.appendChild(this.divs_transparentDiv);
		// Creating content div
		this.divs_content = document.createElement('DIV');
		this.divs_content.className = 'modalDialog_contentDiv';
		this.divs_content.id = 'DHTMLSuite_modalBox_contentDiv';
		this.divs_content.style.zIndex = 100000;
		
		if(this.MSIE){
			this.iframe = document.createElement('<IFRAME src="about:blank" frameborder=0>');
			this.iframe.style.zIndex = 90000;
			this.iframe.style.position = 'absolute';
			document.body.appendChild(this.iframe);	
		}
			
		document.body.appendChild(this.divs_content);
		// Creating shadow div
		this.divs_shadow = document.createElement('DIV');
		this.divs_shadow.className = 'modalDialog_contentDiv_shadow';
		this.divs_shadow.style.zIndex = 95000;
		document.body.appendChild(this.divs_shadow);
		window.refToModMessage = this;
		this.addEvent(window,'scroll',function(e){ window.refToModMessage.__repositionTransparentDiv() });
		this.addEvent(window,'resize',function(e){ window.refToModMessage.__repositionTransparentDiv() });
		

	}
	// }}}
	,
	// {{{ __getBrowserSize()
    /**
     *	Get browser size
     * 	
     *
     * @private	
     */		
	__getBrowserSize : function()
	{
    	var bodyWidth = document.documentElement.clientWidth;
    	var bodyHeight = document.documentElement.clientHeight;
    	
		var bodyWidth, bodyHeight; 
		if (self.innerHeight){ // all except Explorer 
		 
		   bodyWidth = self.innerWidth; 
		   bodyHeight = self.innerHeight; 
		}  else if (document.documentElement && document.documentElement.clientHeight) {
		   // Explorer 6 Strict Mode 		 
		   bodyWidth = document.documentElement.clientWidth; 
		   bodyHeight = document.documentElement.clientHeight; 
		} else if (document.body) {// other Explorers 		 
		   bodyWidth = document.body.clientWidth; 
		   bodyHeight = document.body.clientHeight; 
		} 
		return [bodyWidth,bodyHeight];		
		
	}
	// }}}	
	,
	// {{{ __resizeDivs()
    /**
     *	Resize the message divs
     * 	
     *
     * @private	
     */	
    __resizeDivs : function()
    {
    	
    	var topOffset = Math.max(document.body.scrollTop,document.documentElement.scrollTop);

		if(this.cssClassOfMessageBox)
			this.divs_content.className=this.cssClassOfMessageBox;
		else
			this.divs_content.className='modalDialog_contentDiv';	
			    	
    	if(!this.divs_transparentDiv)return;
    	
    	// Preserve scroll position
    	var st = Math.max(document.body.scrollTop,document.documentElement.scrollTop);
    	var sl = Math.max(document.body.scrollLeft,document.documentElement.scrollLeft);
    	
    	window.scrollTo(sl,st);
    	setTimeout('window.scrollTo(' + sl + ',' + st + ');',10);

    	this.__repositionTransparentDiv();
    	

		var brSize = this.__getBrowserSize();
		var bodyWidth = brSize[0];
		var bodyHeight = brSize[1];
    	
    	// Setting width and height of content div
      	this.divs_content.style.width = this.width + 'px';
    	this.divs_content.style.height= this.height + 'px';  	
    	
    	// Creating temporary width variables since the actual width of the content div could be larger than this.width and this.height(i.e. padding and border)
    	var tmpWidth = this.divs_content.offsetWidth;	
    	var tmpHeight = this.divs_content.offsetHeight;
    	
    	
    	// Setting width and height of left transparent div
    	
    	

    	
    	
		
    	this.divs_content.style.left = Math.ceil((bodyWidth - tmpWidth) / 2) + 'px';;
    	this.divs_content.style.top = (Math.ceil((bodyHeight - tmpHeight) / 2) +  topOffset) + 'px';
    	
 		if(this.MSIE){
 			this.iframe.style.left = this.divs_content.style.left;
 			this.iframe.style.top = this.divs_content.style.top;
 			this.iframe.style.width = this.divs_content.style.width;
 			this.iframe.style.height = this.divs_content.style.height;
 		}
 		
    	this.divs_shadow.style.left = (this.divs_content.style.left.replace('px','')/1 + this.shadowOffset) + 'px';
    	this.divs_shadow.style.top = (this.divs_content.style.top.replace('px','')/1 + this.shadowOffset) + 'px';
    	this.divs_shadow.style.height = tmpHeight + 'px';
    	this.divs_shadow.style.width = tmpWidth + 'px';
    	
    	
    	
    	if(!this.shadowDivVisible)this.divs_shadow.style.display='none';	// Hiding shadow if it has been disabled
    	
    	
    }
    // }}}	
    ,
	// {{{ __insertContent()
    /**
     *	Insert content into the content div
     * 	
     *
     * @private	
     */	    
    __repositionTransparentDiv : function()
    {
    	this.divs_transparentDiv.style.top = Math.max(document.body.scrollTop,document.documentElement.scrollTop) + 'px';
    	this.divs_transparentDiv.style.left = Math.max(document.body.scrollLeft,document.documentElement.scrollLeft) + 'px';
		var brSize = this.__getBrowserSize();
		var bodyWidth = brSize[0];
		var bodyHeight = brSize[1];
    	this.divs_transparentDiv.style.width = bodyWidth + 'px';
    	this.divs_transparentDiv.style.height = bodyHeight + 'px';		
		   	
    }
	// }}}	
	,
	// {{{ __insertContent()
    /**
     *	Insert content into the content div
     * 	
     *
     * @private	
     */	
    __insertContent : function()
    {
			this.divs_content.innerHTML = this.htmlOfModalMessage;	
    }		
}





// IGCN DROP DOWN CODE




 messageObj = new DHTML_modalMessage();	// We only create one object of this class
        messageObj.setShadowOffset(5);	// Large shadow
        
              var dfilename = ''

        // Open Disclaimer Window or Open File if Already Accepted
        function openDisclaimer(filename)
        {
            dfilename=filename;
            if (readCookie('victaulic_disclaimer') == 1)
            {
                openFile();    
            }
            else
            {
                var discLang = cookietoLang(readCookie('igcnlang'))

            
                var messageContent='<div class="discHeaderContain"><div class="disclaimerHeader">' + discTitle(discLang) + '</div><div class="discClose"><a href="javascript:messageObj.close();">X</a></div></div>' + discBody(discLang) + '<br /><br />'
                messageContent += '<div class="disclaimerError" id="disclaimerError">' + discDenied(discLang) + '</div>'
                messageContent += '<div class="disclaimerFooter"><form id="form1" name="form1"><INPUT class="BUTTONBG" id="btnDiscAgree" style="CURSOR: hand" onclick="acceptDisclaimer();" type="button" value="' + discAgree(discLang) + '" name="btnDiscAgree">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <INPUT class="BUTTONBG" id="btnDiscCancel" style="CURSOR: hand" onclick="cancelDisclaimer()"; type="button" value="' + discDisagree(discLang) + '" name="btnDiscCancel"></form></div>'
                var cssClass = 'modalDialog_contentDiv'

	            messageObj.setHtmlContent(messageContent);
	            messageObj.setSize(450,400);
	            messageObj.setCssClassMessageBox(cssClass);
	            messageObj.setSource(false);	// no html source since we want to use a static message here.
	            messageObj.setShadowDivVisible(false);	// Disable shadow for these boxes	
	            messageObj.display();
	        }
        }     

        function openFile()
        {
		  var fpath
		   if (dfilename.indexOf("http://") == -1)
			   	fpath = 'http://' + dfilename;
			else
		 		fpath= dfilename;	
		  window.open(fpath,'literaturewindow');		     			
        }
		
		
		function InStr(strSearch, charSearchFor)
{
            for (i=0; i < strSearch.length; i++)
            {
                  if (charSearchFor == Mid(strSearch, i, 1))
                  {
                        return i;
                  }
            }
            return -1;
}


        function cancelDisclaimer()
        {
            var discLang = cookietoLang(readCookie('igcnlang'))
            
            
            var objDiscError = document.getElementById('disclaimerError');
            objDiscError.style.visibility='visible';
            objDiscError.style.height='50px';
            //alert(discDenied(discLang));
            
            
	        //messageObj.close();	
        }

        function acceptDisclaimer()
        {
            createCookie('victaulic_disclaimer','1','90');
	        messageObj.close();	
	        openFile();
        }


        // cookie code
            function createCookie(name,value,days) {
	            if (days) {
		            var date = new Date();
		            date.setTime(date.getTime()+(days*24*60*60*1000));
		            var expires = "; expires="+date.toGMTString();
	            }
	            else var expires = "";
	            document.cookie = name+"="+value+expires+"; path=/";
            }

            function readCookie(name) {
	            var nameEQ = name + "=";
	            var ca = document.cookie.split(';');
	            for(var i=0;i < ca.length;i++) {
		            var c = ca[i];
		            while (c.charAt(0)==' ') c = c.substring(1,c.length);
		            if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
	            }
	            return '';
            }

            function eraseCookie(name) {
	            createCookie(name,"",-1);
            }
        // end cookie code
        
        

         
        //Language Lookup Table
        function discTitle(lang)
        {
            switch (lang) {
            case 'en': return('Disclaimer');
            case 'ca': return('Disclaimer');
            case 'es': return('Renuncia');    
            case 'la': return('Aclaración');
            //case 'ca': return('');
            case 'fr': return('Exonération de responsabilité');
            case 'it': return('Rinuncia');
            case 'de': return('Haftungsausschluss');
            case 'nl': return('Disclaimer');
            case 'pl': return('Zrzeczenie odpowiedzialności');
            case 'kr': return('면책 조항');
            case 'ch': return('免责声明');
            }
        }
        
        
        function discBody(lang)
        {
            switch (lang) {
            case 'en': return('Victaulic takes great care to provide accurate product information to its customers and users. We recommend that such information not be revised or altered.<br /><br />By accessing these files, the user accepts full responsibility and agrees to defend and indemnify Victaulic for any claims or actions caused in whole or in part directly or indirectly by the user\'s altering, revising, excerpting or relocation of this information. Victaulic retains the right to alter this information at any time.<br /><br />Click "Agree" to accept these terms and view the document. Otherwise, click "Disagree" to return.');
            case 'ca': return('Victaulic takes great care to provide accurate product information to its customers and users. We recommend that such information not be revised or altered.<br /><br />By accessing these files, the user accepts full responsibility and agrees to defend and indemnify Victaulic for any claims or actions caused in whole or in part directly or indirectly by the user\'s altering, revising, excerpting or relocation of this information. Victaulic retains the right to alter this information at any time.<br /><br />Click "Agree" to accept these terms and view the document. Otherwise, click "Disagree" to return.');
            case 'es': return('Victaulic cuida de proporcionar información precisa sobre sus productos a sus clientes y a los usuarios. Recomendamos que dicha información no sea modificada ni alterada.<br /><br />Al acceder a estos archivos, el usuario asume total responsabilidad y se compromete a defender y a indemnizar a Victaulic ante cualquier reclamo o acción causada en su totalidad o en parte, directa o indirectamente, por la alteración, la modificación, la edición o la reubicación de esta información por el usuario. Victaulic conserva el derecho de alterar esta información en cualquier momento.<br /><br />Haga clic en "Acepto" para aceptar estos términos y ver el documento. Si no está de acuerdo, haga clic en "No acepto" para volver atrás.');
            case 'la': return('Victaulic pone especial cuidado en proporcionar a sus clientes y usuarios la información de producto más precisa. Recomendamos no revisar ni alterar dicha información.<br /><br />Al acceder a estos ficheros, el usuario asume su total responsabilidad y acepta defender e indemnizar a Victaulic por las reclamaciones o acciones causadas total o parcialmente, directa o indirectamente por la alteración, revisión, excerta o reubicación de esta información. Victaulic se reserva el derecho de modificar dicha información en cualquier momento.<br /><br />Pulse "Aceptar" para aceptar estos términos y visualizar el documento. De lo contrario, pulse "Rechazar" para volver.');
            //case 'ca': return('');
            case 'fr': return('La société Victaulic accorde le plus grand soin à l\'exactitude des informations sur ses produits qu\'elle fournit à ses clients et utilisateurs. Nous vous recommandons de ne pas apporter de révisions ou d\'altérations à ces informations.<br /><br />En accédant à ces fichiers, l\'utilisateur s\'engage à défendre, indemniser et couvrir l\'entière responsabilité de Victaulic pour et contre toute réclamation ou action en justice résultant entièrement ou partiellement, de manière directe ou indirecte, d\'une altération, révision, production d\'extrait ou d\'un transfert de ces informations par l\'utilisateur. Victaulic conserve le droit de modifier ces informations à tout moment.<br /><br />Cliquez sur "Accepter" pour accepter ces conditions et accéder au document. Dans le cas contraire, cliquez sur "Ne pas accepter" pour revenir en arrière."');
            case 'it': return('Victaulic si impegna con la massima cura per offrire informazioni precise sui prodotti ai clienti e agli utenti. Consigliamo pertanto di non alterare o modificare tali informazioni.<br /><br />Accedendo ai file, l\'utente accetta la piena responsabilità e acconsente a difendere, a risarcire Victaulic per reclami o azioni causate interamente o parzialmente, direttamente o indirettamente dall\'alterazione, dalla modifica, dall\'estrazione o dal riposizionamento delle presenti informazioni. Victaulic si riserva il diritto di modificare le informazioni in qualsiasi momento.<br /><br />Fare clic su "Accetto" per accettare i presenti termini e visualizzare il documento. Per tornare indietro fare clic su "Annulla".');
            case 'de': return('Victaulic unternimmt die größtmöglichen Anstrengungen, seinen Kunden und Nutzern fehlerfreie Produktinformationen zur Verfügung zu stellen. Wir empfehlen, diese Informationen nicht zu revidieren oder abzuändern.<br /><br />Durch die Verwendung dieser Dateien, übernehmen deren Nutzer die vollständige Verantwortung und stimmen zu, Victaulic vor allen, vollständig oder teilweise, direkt oder indirekt, durch seitens des Nutzers vorgenommene Abänderungen, Revisionen, Auszugnahmen oder Umverlagerungen dieser Informationen zu Stande gekommenen Forderungen oder Klagen zu schützen und schadlos zu halten. Victaulic behält sich das Recht vor, diese Informationen jederzeit und ohne Vorankündigung zu ändern.<br /><br />Klicken Sie auf „Zustimmen", um diese Bedingungen zu akzeptieren und das Dokument aufzurufen. Klicken Sie andernfalls, um zur vorherigen Seite zurückzukehren, auf „Ablehnen".');
            case 'nl': return('Victaulic doet al het mogelijke om nauwkeurige productinformatie aan haar klanten en gebruikers te verschaffen. We raden u aan zulke informatie niet te herzien of te wijzigen.<br /><br />Door deze bestanden te openen, aanvaardt de gebruiker de volledige aansprakelijkheid en gaat hij ermee akkoord om Victaulic te verdedigen en te vergoeden voor eisen of acties die geheel of gedeeltelijk, rechtstreeks of onrechtstreeks veroorzaakt zijn door wijzigingen, herzieningen, uitzonderingen of verplaatsingen van deze informatie. Victaulic behoudt zicht het recht voor om deze informatie op eender welk moment te veranderen.<br /><br />Klik op "Akkoord" om deze voorwaarden te aanvaarden en het document weer te geven. Klik anders op "Niet akkoord" om terug te keren."');
            case 'pl': return('Firma Victaulic dokłada wszelkich starań, aby zapewnić dokładne informacje o produktach dla swoich klientów i użytkowników. Zalecamy, aby takie informacje nie były zmieniane ani modyfikowane.<br /><br />Poprzez uzyskanie dostępu do tych plików użytkownik przyjmuje pełną odpowiedzialność oraz zgadza się bronić i zwolnić z odpowiedzialności firmę Victaulic za wszelkie roszczenia lub działania spowodowane w całości lub części, bezpośrednio lub pośrednio, przez zmianę, modyfikację, utworzenie fragmentu lub zmianę położenia tych informacji przez użytkownika. Firma Victaulic zachowuje prawo do zmiany tych informacji w dowolnym momencie.<br /><br />Kliknij przycisk „Zgadzam się”, aby zaakceptować te warunki i wyświetlić dokument. W przeciwnym razie kliknij przycisk „Nie zgadzam się”, aby wrócić."');
            case 'kr': return('Victaulic은 고객과 사용자에게 정확한 제품 정보를 제공하고자 상당한 주의를 기울이고 있습니다. 당사는 이 같은 정보를 수정 혹은 변경하지 말 것을 권고합니다.<br /><br />사용자는 이러한 파일에 접근함으로써 사용자에 의한 해당 정보 변경, 수정, 발췌 혹은 재배치로 인해 전체적 혹은 부분적이나 직접적 혹은 간접적으로 야기되는 어떠한 손해배상 또는 조치에 대해서 전적인 책임을 지며 Victaulic을 변호하고 면책하는 데에 동의하게 되는 것입니다. Victaulic은 이러한 정보를 언제라도 변경할 권리를 보유합니다. 상기 조항을 수락하고 문서를 보려면 "동의합니다" 버튼을 클릭하시기 바랍니다. 그렇지 않을 경우 "동의하지 않습니다" 버튼을 누르면 이전 페이지로 돌아갈 수 있습니다.');
            case 'ch': return('唯特利极为小心、竭尽全力地为其顾客和用户提供准确的产品信息。我们建议不要对这些信息做出任何修改或变更。<br /><br />取得这些文件意味着用户将自行承担全部责任，并同意就用户全文或部分、直接或间接变更、修改、摘录或转发此种信息所造成的所有索赔或行动为唯特利提供辩护支持和补偿。唯特利保留随时更改这些信息的权力。<br /><br />请点击“同意”接收这些条款并查看文件。否则，请点击“不同意”返回。');
            }
        }
        
        function discAgree(lang)
        {
            switch (lang) {
            case 'en': return('Agree');
            case 'ca': return('Agree');
            case 'es': return('Acepto');           
            case 'la': return('Aceptar');
            //case 'ca': return('');
            case 'fr': return('Accepter');
            case 'it': return('Accetto');
            case 'de': return('Zustimmen');
            case 'nl': return('Akkoord');
            case 'pl': return('Zgadzam się');
            case 'kr': return('동의합니다');
            case 'ch': return('同意');
            }
        }
        
         function discDisagree(lang)
        {
            switch (lang) {
            case 'en': return('Disagree');
            case 'ca': return('Disagree');
            case 'es': return('No acepto');           
            case 'la': return('Rechazar');
            //case 'ca': return('');
            case 'fr': return('Ne pas accepter');
            case 'it': return('Annulla');
            case 'de': return('Ablehnen');
            case 'nl': return('Niet akkoord');
            case 'pl': return('Nie zgadzam się');
            case 'kr': return('동의하지 않습니다');
            case 'ch': return('不同意');
            }
        }
        
        function discDenied(lang)
        {
        switch (lang) {
            case 'en': return('You have choosen not to accept the disclaimer.  You cannot download any files until the disclaimer is accepted.');
            case 'ca': return('You have choosen not to accept the disclaimer.  You cannot download any files until the disclaimer is accepted.');
            case 'es': return('Ha elegido no aceptar la renuncia.  No puede descargar ningún fichero mientras no acepte la renuncia.');           
            case 'la': return('Ha decidido no aceptar la cláusula de exención de responsabilidad.  No puede descargar archivos hasta que haya aceptado esta cláusula de exención de responsabilidad.');
            //case 'ca': return('');
            case 'fr': return('Vous avez choisi de ne pas accepter nos conditions d\'exonération de responsabilité.  Vous ne pouvez pas télécharger de fichier sans avoir au préalable accepté ces conditions.');
            case 'it': return('Hai scelto di non accettare la clausola di esclusione della responsabilità.  Non è possibile effettuare il download di alcun file fino a quando la clausola di esclusione della responsabilità non è accettata.');
            case 'de': return('Sie haben den Haftungsausschluss nicht akzeptiert.  Die Dateien können nur heruntergeladen werden, wenn Sie den Haftungsausschluss akzeptieren.');
            case 'nl': return('U hebt ervoor gekozen om de disclaimer niet te accepteren.  U kunt geen bestanden downloaden tot u de disclaimer geaccepteerd hebt.');
            case 'pl': return('Użytkownik nie zaakceptował warunków zrzeczenia się odpowiedzialności przez firmę Victaulic.  Bez uprzedniej akceptacji tych warunków nie można pobierać żadnych plików.');
            case 'kr': return('면책조항 수락을 선택하지 않으셨습니다.  면책조항을 수락하지 않으면 파일을 다운로드하실 수 없습니다.');
            case 'ch': return('您已选择了不接受免责声明。在接受免责声明前，您将不能下载任何文件。');
            }
        }

	function cookietoLang(cookie)
	{
		switch (cookie) {
		case '1': return('en');
		case '2': return('ch');
		case '3': return('es');
		case '4': return('de');
		case '5': return('ca');
		case '6': return('la');
		case '7': return('it');
		case '8': return('fr');
		case '9': return('kr');
		case '10': return('pl');
		case '11': return('nl');
		}
	}
