function myFunction(var1)
{
sj.load("http://www.cmrwarwicker.com/scripts/ajaxScripts.php?var1="+encodeURIComponent(var1), function(data){document.getElementById('the_projects').innerHTML = data;}, "GET");  
}

function myFunction2(var1)
{
sj.load("http://www.cmrwarwicker.com/scripts/ajaxScripts2.php?var1="+encodeURIComponent(var1), function(data){document.getElementById('the_projects').innerHTML = data;}, "GET");  
}

function spiffyDemo(var1)
{
sj.load("http://www.cmrwarwicker.com/scripts/spiffyDemo.php?var1="+encodeURIComponent(var1), function(data){document.getElementById('spiffyOutput').innerHTML = data;}, "GET");  
}




function toggleDiv(i)
{

var disp = document.getElementById(i).style.display;

if(disp == 'none')
{
jQuery("#"+i).fadeIn(1000);
}
else
{
jQuery("#"+i).fadeOut(1000);
}

}


function externalLinks() {   
 if (!document.getElementsByTagName) return;   
 var anchors = document.getElementsByTagName("a");   
 for (var i=0; i<anchors.length; i++) {   
   var anchor = anchors[i];   
   if (anchor.getAttribute("href") &&   
       anchor.getAttribute("rel") == "external")   
     anchor.target = "_blank";   
 }   
}   
window.onload = externalLinks;


function randNum(nums, rows, min, max, dup)
{
sj.load("http://www.cmrwarwicker.com/scripts/otherScripts.php?var1=randNum&nums="+nums+"&rows="+rows+"&min="+min+"&max="+max+"&dup="+dup, function(data){document.getElementById('output').innerHTML = data;}, "GET");  
}




