//  J.Ha.

function createLinkNSCP() {
	var str=prompt("Enter link location (e.g. http://www.xanga.com):","http:\/\/");
	if (str) {
		var str1=prompt("Enter link title:","");

		if (str1) {
		  	str = "<A HREF=\"" + str + "\">" + str1 + "</A>";
		  	prompt("This is your HTML link code.\nCopy and paste this HTML onto your Description:", str);
		}
		else this.document.sform.bdescr.focus();
	}
}
		
function createImgNSCP() {
	var str=prompt("Enter image location\n(e.g. http://www.xanga.com/images/xangalogo.gif):","http:\/\/");
	if ((str!=null) && (str!="http://")) {
	  	str = "<IMG SRC=\"" + str + "\">"
	  	prompt("This is your HTML image code.\nCopy and paste this HTML onto your Description:", str);
	}
	else this.document.sform.bdescr.focus();
}

function createImgNSCP_premium() {
	var win = window.open('/ImageHosting/UploadImage.aspx','_imgageinsert', 'scrollbars=1,resizable=1,width=410,height=560');
}
	
function previewHTML() {
	var msgWindow;
	msgWindow=this.open("","displayWindow","'scrollbars=1,resizable=1,width=450,height=500'");
	msgWindow.document.write("<HTML>");
	msgWindow.document.write("<HEAD><TITLE>Preview HTML</TITLE></HEAD><BODY>");  
	msgWindow.document.write(document.sform.bdescr.value + "<BR></BODY></HTML>");
	return false;
}

function displaysmileys() {
  var msgWindow;
  msgWindow=this.open("/Private/popup_smiley.htm","displayWindow","'toolbar=0,locationbar=0,directories=0,statusbar=0,titlebar=0,menubar=0,screenX=0,screenY=0,scrollbars=0,resizable=1,width=160,height=250'");
  return false;
}
