<!--

            var strEmailString = "CPE=EMC-RAF";

            function AddParamToURL(strLoc, strParam) 
            {
				var i = strLoc.lastIndexOf("?");
			
				if(strLoc.indexOf(strParam, i) >= 0)
				{
					return strLoc;
				}
				
				strLoc += ((i >= 0) && (i > strLoc.lastIndexOf("/"))) ? "&" : "?";
				return strLoc + strParam;
			}
			
            function GetContentWnd()
            { 
                return parent; 
            }	

            function OnEmail()
            {
                var oWnd = 	GetContentWnd();
                var vURL =oWnd.location.href ;
                var siteName;
                var locName;
                if (vURL.indexOf('/uk/')  > 0)
                {
                    siteName ='uk';
                    locName ='/uk/';
                }
                else
                {
                    if (vURL.indexOf('/eu/')  > 0)
                    {
                        siteName ='eu';
                        locName ='/eu/';
                    }
                    else
                    {
                        siteName ='crucial';
                        locName ='/us/';
                    }
                }
                var loggedUserName = getCookie(siteName + 'AuthUserName');
                
                if (loggedUserName != null)
                {
                    //direct the person to
                    vURL = vURL.replace( window.location.protocol + '//' + window.location.hostname ,'') ; 
                    oWnd.location.href = locName + 'mysite/referral.aspx?rurl=' + escape(vURL);
                    
                }
                else
                {
				    var oDoc = oWnd.document;
				    var oDescription = oDoc.getElementById("Description");
				    var strDescription = ( (oDescription == null) || (oDescription.content == "") ) ? oDoc.title : oDescription.content;	
				    vURL = AddParamToURL(oWnd.location.href, strEmailString);
							
				    if( oDoc.title == "" )
				    {
					    oWnd.location.href = "mailto:?body="+BuildEmailDescription(strDescription, vURL);
				    }
				    else
				    {
					    oWnd.location.href = "mailto:?subject="+escape(oDoc.title)+"&body="+BuildEmailDescription(strDescription, vURL);
				    }
				}
				return true;
			}
			
            function OnEmailWithInput(pURL)
            {
				var oWnd = 	GetContentWnd();
				var oDoc = oWnd.document;
				var oDescription = oDoc.getElementById("Description");
				var strDescription = ( (oDescription == null) || (oDescription.content == "") ) ? oDoc.title : oDescription.content;	
				var vURL;
								
				if( oDoc.title == "" )
				{
					oWnd.location.href = "mailto:?body="+BuildEmailDescription(strDescription, pURL);
				}
				else
				{
					oWnd.location.href = "mailto:?subject="+escape(oDoc.title)+"&body="+BuildEmailDescription(strDescription, pURL);
				}
				
				return true;
			}
						
            function BuildEmailDescription(strDescription, hRef)
            {
				return escape("I found this on Crucial.com that I think you should check out:" + String.fromCharCode(13) + String.fromCharCode(13) + strDescription + String.fromCharCode(13) + "Link: " + hRef + String.fromCharCode(13) + String.fromCharCode(13) + "Need FLASH memory?" + String.fromCharCode(13) + "Crucial has that, too!" + String.fromCharCode(13) + "www.crucial.com");
			}
-->


