﻿//Swap Images
function toggleImage(targetImageName, newImgSource) {
	document.images[targetImageName].src = newImgSource;
}

function popupTemplate(targetUrl) {
	window.open(targetUrl, '_blank', 'width=516,height=300,scrollbars=yes');
}

function popupTemplateBig(targetUrl) {
	window.open(targetUrl, '_blank', 'width=540,height=430,scrollbars=yes');
}
function popupTemplateBig2(targetUrl) {
	window.open(targetUrl, '_blank', 'width=657,height=515,scrollbars=yes');
}
function popupTemplateBig3(targetUrl) {
    window.open(targetUrl, '_blank', 'width=535,height=460,scrollbars=yes');
    return false;
}
function closeWindow()
{
    window.close();
}
function physicianCheck()
{	
	return confirm('The information contained in this section of the site is intended for U.S. healthcare professionals only. Click “OK” if you are a healthcare professional.')
	
}

function goSelectedValue(ddlSelectBox)
{
	window.open(ddlSelectBox.value, '_self');
}

function goSelectedValuePrompt(ddlSelectBox)
{
	if(confirm('The information contained in this section of the site is intended for U.S. healthcare professionals only. Click “OK” if you are a healthcare professional.'))
	window.open(ddlSelectBox.value, '_self');
}

//Prevent Search Submit
function noenter() 
{
  return !(window.event && window.event.keyCode == 13); 
  
}

// Send data to database from flash
function storeUserInfo(userID, sectionID, honorID, completeID)
{
	document.getElementById("headerFlashContent").previewBanner(selectedBannerFileName, textInput1, textInput2, textInput3, textInput4, textXpos, textYpos, selectedFont, bannerTextSize, selectedColor, selectedIcon, nameInput, titleInput);
}