tinyMCE.init({
	mode :"exact",
	theme : "advanced",
	elements : "body",
	
	plugins : "paste,filemanager,imagemanager,devkit,style,layer,table,save,advhr,advimage,advlink,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template",

		theme_advanced_buttons1_add : "fontselect,fontsizeselect",

		theme_advanced_buttons2_add_before: "cut,copy,paste,pastetext,pasteword,separator,search,replace,separator",

		theme_advanced_buttons3_add : "insertfile,insertimage,image",

	
	
	
	theme_advanced_toolbar_location : "top",
	paste_auto_cleanup_on_paste :true,
	paste_convert_headers_to_strong : true,
	
	theme_advanced_toolbar_align : "left"
	
});
// Java Document
var dayarray=new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday")
var montharray=new Array("January","February","March","April","May","June","July","August","September","October","November","December")

function getthedate(){
var mydate=new Date()
var year=mydate.getYear()
if (year < 1000)
year+=1900
var day=mydate.getDay()
var month=mydate.getMonth()
var daym=mydate.getDate()
if (daym<10)
daym="0"+daym
var hours=mydate.getHours()
var minutes=mydate.getMinutes()
var seconds=mydate.getSeconds()
var dn="AM"
if (hours>=12)
dn="PM"
if (hours>12){
hours=hours-12
}
if (hours==0)
hours=12
if (minutes<=9)
minutes="0"+minutes
if (seconds<=9)
seconds="0"+seconds
var cdate=dayarray[day]+", "+montharray[month]+" "+daym+", "+year+" "+hours+":"+minutes+":"+seconds+" "+dn
if (document.all)
document.all.clock.innerHTML=cdate
else if (document.getElementById)
document.getElementById("clock").innerHTML=cdate
else
document.write(cdate)
}
if (!document.all&&!document.getElementById)
getthedate()
function goforit(){
if (document.all||document.getElementById)
setInterval("getthedate()",1000)
}

function DeletePortfolio(id,title,page) {

	var answer = confirm("Delete this Policy of "+title+" ?")
	if (answer){
		
		window.location = page+".php?Aid="+id;
	}	
	
}


function text1(thi)
{
		 if (thi.value == 'Name') {thi.value = '';thi.style.color = '#333333'; }; 
}

function text2(thi)
{
	   if (thi.value == '') {thi.value = 'Name';thi.style.color='#999999'};
}

function text3(thi)
{
		 if (thi.value == 'E-mail') {thi.value = '';thi.style.color = '#333333'; }; 
}

function text4(thi)
{
	   if (thi.value == '') {thi.value = 'E-mail';thi.style.color='#999999'};
}

function text5(thi)
{
		 if (thi.value == 'Subject') {thi.value = '';thi.style.color = '#333333'; }; 
}

function text6(thi)
{
	   if (thi.value == '') {thi.value = 'Subject';thi.style.color='#999999'};
}

function text7(thi)
{
		 if (thi.value == 'Message') {thi.value = '';thi.style.color = '#333333'; }; 
}

function text8(thi)
{
	   if (thi.value == '') {thi.value = 'Message';thi.style.color='#999999'};
}

