function forumwarning ( val ) 
{

	if (val )  
		{	
			window.open ("forumwarning.aspx")
		}
	
}

function showhelp (  ) 
{
	var windowwidth=350;
	var windowheight=175;
	var windowleft = (screen.width - parseInt(windowwidth)) / 2;
	var windowtop = (screen.height - parseInt(windowheight)) / 2;
	windowproperties = 'resizable=no,status=no,toolbar=no,height='+windowheight+',width='+windowwidth+',top='+windowtop+',left='+windowleft+',scrollbars=no'
	window.open("help.htm", 'popup', windowproperties)
	
}

function HelpPopup ( helppage  ) 
{
	var windowwidth=500;
	var windowheight=450;
	var windowleft = (screen.width - parseInt(windowwidth)) / 2;
	var windowtop = (screen.height - parseInt(windowheight)) / 2;
	windowproperties = 'resizable=no,status=no,toolbar=no,height='+windowheight+',width='+windowwidth+',top='+windowtop+',left='+windowleft+',scrollbars=yes'
	window.open(helppage, 'popup', windowproperties)
	
}

function Popup ( webpage , width , height  ) 
{
	var windowwidth=width;
	var windowheight=height;
	var windowleft = 10//(screen.width - parseInt(windowwidth)) / 2;
	var windowtop = 10//(screen.height - parseInt(windowheight)) / 2;
	windowproperties = 'resizable=no,status=no,toolbar=no,height='+windowheight+',width='+windowwidth+',top='+windowtop+',left='+windowleft+',scrollbars=yes'
	window.open(webpage, 'popup', windowproperties)
	
}
function fillCity ( drpState ) 
{
	drpCity = document.Form1.drpCity
	
	state = drpState[drpState.selectedIndex].value 
	if ( state == 'NY' )
	{
		drpCity[1] = new Option ( 'Long Island' , 'LI' ) 
		drpCity[2] = new Option ( 'FDNY' , 'FDNY' ) 
		
	}
	else if ( state == 'PA' )
	{
		drpCity[1] = new Option ( 'Philedelphia' , 'PH' ) 
		var i=drpCity.length
                
                 for(j=i;j>1;j--){
		  drpCity[j] = null;
                 }
	}
	else
	{
                var i=drpCity.length
                
                 for(j=i;j>0;j--){
		  drpCity[j] = null;
                 }

	}
}


// Default button click .


function fnTrapDefault (btn) 
{
 if (document.all){
   if (event.keyCode == 13)
   { 
     event.returnValue=false;
     event.cancel = true;
     
     btn.click();
   } 
 } 
}

function fnChkMaxCategoriesSelected ( checkbox ) 
{
	alert ( checkbox.checked ) 


}


function DisableImageClick(e) {

		if (document.all) {

			if (event.button==2||event.button==3) {

				if (event.srcElement.tagName=="IMG"){
					alert(alertMsg);
					return false;
				}

			}

		}
		else if (document.layers) {

			if (e.which == 3) {
				alert(alertMsg);
				return false;
			}

		}
		else if (document.getElementById){

			if (e.which==3&&e.target.tagName=="IMG"){
				alert(alertMsg);
				return false;
			}

		}

	}

	function GetImages(){

		for(i=0;i<document.images.length;i++)
			document.images[i].onmousedown=DisableImageClick;
	}

		var alertMsg = "\251 1st Responder Broadcast Network \n For pictures or any other information Email webmaster@1strespondernews.com";

	if (document.all)
		document.onmousedown=DisableImageClick;
	else if (document.getElementById)
		document.onmouseup=DisableImageClick;
	else if (document.layers)
		GetImages();




