function go(loc) {
	window.location.href = loc;
}

/*****************************************************************************************/
var win=null;
function myPopupwindow(pagelink,pagename,wh,ht,scroll,pos){
	if(pos=="random"){
		LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-wh)):100;TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-ht)-75)):100;
	}
	if(pos=="center"){
		LeftPosition=(screen.width)?(screen.width-wh)/2:100;TopPosition=(screen.height)?(screen.height-ht)/2:100;
	}
	else if((pos!="center" && pos!="random") || pos==null){
		LeftPosition=0;TopPosition=0
	}
	settings='width='+wh+',height='+ht+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no';
	win=window.open(pagelink,pagename,settings);
}
/*****************************************************************************************/

/*****************************************************************************************/
function add_file(id, i) {
	if (document.getElementById(id + '_' + i).innerHTML.search('uploadinputbutton') == -1) {
		document.getElementById(id + '_' + i).innerHTML = '<textarea rows="3" cols="20" class="uploadinputbutton" name="' + id + '[]"></textarea><br /><span id="' + id + '_' + (i+1) + '"><input type="button" value="Add Other" onclick="add_file(\'' + id + '\', ' + (i+1) + ');" /><\/span>\n';
	}
}
/*****************************************************************************************/
function setCookie(c_name,value,expiredays){
var exdate=new Date();
exdate.setDate(exdate.getDate()+expiredays);
document.cookie=c_name+ "=" +escape(value)+((expiredays==null) ? "" : "; expires="+exdate.toGMTString());
}
/*****************************************************************************************/

/*****************************************************************************************/
function hideElement( elementID ) {
	var eLEMENT = document.getElementById( elementID );
	eLEMENT.style.display = 'none';
}

function showElement( elementID ) {
	var eLEMENT = document.getElementById( elementID );
	eLEMENT.style.display = 'inline';
}
/*****************************************************************************************/
