//General JS for Breakthrough Main site

function email_to_friend(pageid) {
window.open('/applications/email_to_friend.rm?id='+pageid,'Email','width=380,height=485,scrollbars=1');
}

function showPrintVersion(themename) {
	document.getElementById('printcss').href='/css/front/print.css';
	document.getElementById('printfloatcss').href='/css/front/print_preview.css';
	document.getElementById('themeprintcss').href='/css/front/themes/'+themename+'_print.css';
}

function showNormalVersion(themename) {
	document.getElementById('printcss').href='/css/front/style.css';
	document.getElementById('printfloatcss').href='/css/front/style.css';
	document.getElementById('themeprintcss').href='/css/front/themes/'+themename+'.css';
}

function nav2ImgOn(imgID, fileName) {
     //alert(document.getElementById(imgID).src);
     document.getElementById(imgID).src = "" + fileName + "_hover.gif";
}

function nav2ImgOff(imgID, fileName) {
     document.getElementById(imgID).src = "" + fileName + ".gif";
}


//General JS for Purple Online

function purple_email_to_friend(pageid) {
window.open('/applications/purple/email_to_friend.rm?id='+pageid,'Email','width=380,height=485,scrollbars=1');
}

function feedbackSubmit()
{
	document.purple_feedback.action = "/applications/purple/act_feedback.rm"
	document.purple_feedback.submit();			// Submit the page
	return true;
}

function feedbackPreview()
{
	document.purple_feedback.action = "/applications/purple/purple_feedback_preview.rm"
	document.purple_feedback.submit();			// Submit the page
	return true;
}


