/*  
 Author: Chelsea Fenton 
 Date  : 20090623
  
 Purpose: Tools for use with the pure element search pages on the alfa.com website 
*/

jQuery(document).ready(function() {   
   		
   			
});

String.prototype.trim = function() {
	return this.replace(/^\s+|\s+$/g,"");
}

function showElement(element)
{
	window.location = "GP160W.pgm?task=element&element="+element;	
}

function showGroup(groupname,element,group,elementname)
{	
	window.location = "GP140W.pgm?task=product&srchtyp=ELEM&PSvalue="+groupname.trim()+"&element="+element+"&group="+group + "&elementname=" + elementname;	
}
