//Opens Custom Windows
var trackingwindow;
var newwindow;
var pdfwindow;

function popTrack(url) { //Generic Blank Window for Tracking
	trackingwindow=window.open(url,'Tracking','left=0, top=0, width=800, height=600, toolbar=yes, directories=yes, location=yes, status=yes, menubar=yes, resizable=yes, scrollbars=yes');
	if (window.focus) {trackingwindow.focus();}
}
function popNew(url) { //Generic Blank Window
	newwindow=window.open(url,'New','left=0, top=0, width=1024, height=768, toolbar=yes, directories=yes, location=yes, status=yes, menubar=yes, resizable=yes, scrollbars=yes');
	if (window.focus) {newwindow.focus();}
}
function popPDF(url) { //PDF Window
	pdfwindow=window.open(url,'PDF','left=10, top=20, width=878, height=600, toolbar=yes, directories=yes, location=yes, status=yes, menubar=yes, resizable=yes, scrollbars=yes');
	if (window.focus) {pdfwindow.focus();}
}

//Style Swap Toggle
function onOff(id) {
    oo = document.getElementById(id);
    if (oo.className == 'off') {oo.className = 'on';}
       else {oo.className = 'off';}
}
// Show Dropdown
function showdd(id) {
    s = document.getElementById(id);
    if (s.className == 'hide') {s.className = 'show';}
       else {s.className = 'hide';}
}
// Hide Dropdowns
function hidedd(id) {
    h = document.getElementById(id);
    if (h.className == 'show') {h.className = 'hide';}
       else {h.className = 'hide';}
}
//Email Encoder
function emEnc(account,domain,name)
{document.write('<a href="mailto:'+account+'&#64;'+domain+'&#46;com?subject='+name+'">'+name+'</a>');}
//Sample Code
//<p><script type="text/javascript">emEnc("account","domain","Name/Text")</script><p>
