function FocusText(BoxName)
					 {
					 if (BoxName.value == BoxName.defaultValue)
					 	{
						BoxName.value = '';
						}
					 }
function BlurText(BoxName)
					 {
					 if (BoxName.value == '')
					 {BoxName.value = BoxName.defaultValue;}
					 }

					 
function ChangeColor(item, item_id)
{
	$j(".ch_able").css("background-color","#DA8625");
	$j(item).css("background-color","#0159a3");
	$j('#rb'+item_id).attr("checked", true); 
	
}

					 
function open_window(link,w,h) //opens new window
 {
  var win = "width="+w+",height="+h+",menubar=no,location=no,resizable=yes,scrollbars=yes";
  newWin = window.open(link,"newWin",win);
  newWin.focus();
 }

currPlayer = -1;
function play_ringtone(link,media_id) {

	 if (arguments.length > 2){
		play_image=arguments[2];
	 } else {
		 play_image='/images/listen_speaker.gif';
	 }


	 if (arguments.length > 3){
		stop_image=arguments[3];
	 } else {
		 stop_image='/images/listen_speaker_off.gif';
	 }

	if (currPlayer != -1)
		document.getElementById('image'+currPlayer).src=play_image;
	
	if (currPlayer == media_id) {
		
		document.getElementById('mp3player_swf').src = 'about:blank';
		currPlayer = -1;
		return;
	}
	
	currPlayer = media_id;
	document.getElementById('image'+currPlayer).src=stop_image;
	
	document.getElementById('mp3player_swf').src = link;
}

 
 function confirmDelete(question, where)
{
	temp = window.confirm(question);
	if (temp) //delete
	{
		window.location=where;
	}
}

//========================================
$j(document).ready(function(){
	$j("#q1").click( function(){
  			$j("#foc1").focus();});
});


//===============================================
//===========AJAX================================
